Function report |
Source Code:fs\userfaultfd.c |
Create Date:2022-07-28 20:20:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:userfaultfd_read
Proto:static ssize_t userfaultfd_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
char __user * | buf | |
size_t | count | |
loff_t * | ppos |
1204 | ret = 0 |
1206 | no_wait = f_flags & O_NONBLOCK |
1208 | If state machine == UFFD_STATE_WAIT_API Then Return -EINVAL |
1211 | cycle |
1214 | _ret = userfaultfd_ctx_read(ctx, no_wait, & msg) |
1217 | If copy_to_user((__u64__user * )buf, & msg, size of msg ) Then Return If ret Then ret Else -EFAULT |
1226 | no_wait = O_NONBLOCK |
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 |