Function report |
Source Code:kernel\time\test_udelay.c |
Create Date:2022-07-28 10:52:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:udelay_test_write
Proto:static ssize_t udelay_test_write(struct file *file, const char __user *buf, size_t count, loff_t *pos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
const char __user * | buf | |
size_t | count | |
loff_t * | pos |
111 | If copy_from_user(lbuf, buf, count) Then Return -EFAULT |
115 | ret = sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments |
118 | Else if ret < 2 Then iters = DEFAULT_ITERATIONS |
121 | mutex_lock( & udelay_test_lock) |
122 | udelay_test_usecs = usecs |
123 | udelay_test_iterations = iters |
126 | Return count |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |