函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\test_udelay.c Create Date:2022-07-27 11:52:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:udelay_test_show

函数原型:static int udelay_test_show(struct seq_file *s, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *s
void *v
72  ret等于0
74  mutex_lock( & udelay_test_lock)
75  usecs等于udelay_test_usecs
76  iters等于udelay_test_iterations
77  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
79  如果usecs大于0且iters大于0则
80  返回:udelay_test_single(s, usecs, iters)
81  否则如果usecs恒等于0则
84  ktime_get_ts64 - get the monotonic clock in timespec64 format*@ts: pointer to timespec variable* The function calculates the monotonic clock from the realtime* clock and the wall_to_monotonic offset and stores the result
85  seq_printf(s, "udelay() test (lpj=%ld kt=%lld.%09ld)\n", loops_per_jiffy, (s64) seconds , nanoseconds )
87  seq_puts(s, "usage:\n")
88  seq_puts(s, "echo USECS [ITERS] > "DEBUGFS_FILENAME"\n")
89  seq_puts(s, "cat "DEBUGFS_FILENAME"\n")
92  返回:ret