| Function report | 
| Source Code: fs\notify\fanotify\fanotify_user.c | Create Date:2022-07-28 20:18:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:fanotify_read
Proto:static ssize_t fanotify_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 | 
| 349 | When 1 cycle | 
| 356 | If Not kevent Then | 
| 358 | If f_flags & O_NONBLOCK Then Break | 
| 362 | If signal_pending(current process) Then Break | 
| 369 | Continue | 
| 372 | 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. | 
| 380 | ret = 0 | 
| 387 | If Not fanotify_is_perm_event(mask) Then | 
| 389 | Else | 
| 390 | If ret <= 0 Then | 
| 391 | spin_lock( & protect the notification_list ) | 
| 394 | wake_up( & access_waitq) | 
| 395 | Else | 
| 402 | If ret < 0 Then Break | 
| 411 | 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 |