Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\test_udelay.c Create Date:2022-07-28 10:52:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:udelay_test_show

Proto:static int udelay_test_show(struct seq_file *s, void *v)

Type:int

Parameter:

TypeParameterName
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  If usecs > 0 && iters > 0 Then
80  Return udelay_test_single(s, usecs, iters)
81  Else if usecs == 0 Then
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  Return ret