Function report |
Source Code:fs\notify\inotify\inotify_user.c |
Create Date:2022-07-28 20:17:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:inotify_read
Proto:static ssize_t inotify_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
char __user * | buf | |
size_t | count | |
loff_t * | pos |
225 | When 1 cycle |
226 | spin_lock( & protect the notification_list ) |
228 | spin_unlock( & protect the notification_list ) |
232 | If kevent Then |
236 | ret = Copy an event to user space, returning how much we copied.* We already checked that the event size is smaller than the* buffer we had in "get_one_event()" above. |
238 | If ret < 0 Then Break |
242 | Continue |
246 | If f_flags & O_NONBLOCK Then Break |
249 | If signal_pending(current process) Then Break |
261 | Return ret |
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 |