| Function report | 
| Source Code: fs\eventfd.c | Create Date:2022-07-28 20:20:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:eventfd_write
Proto:static ssize_t eventfd_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| const char __user * | buf | |
| size_t | count | |
| loff_t * | ppos | 
| 276 | If copy_from_user( & ucnt, buf, size of ucnt ) Then Return -EFAULT | 
| 278 | If ucnt == ULLONG_MAX Then Return -EINVAL | 
| 280 | spin_lock_irq( & lock) | 
| 284 | Else if Not (f_flags & O_NONBLOCK) Then | 
| 285 | __add_wait_queue( & wqh, & wait) | 
| 286 | cycle | 
| 292 | If signal_pending(current process) Then | 
| 294 | Break | 
| 296 | spin_unlock_irq( & lock) | 
| 297 | schedule() | 
| 298 | spin_lock_irq( & lock) | 
| 300 | __remove_wait_queue( & wqh, & wait) | 
| 303 | If Value is more likely to compile time(res > 0) Then | 
| 308 | spin_unlock_irq( & lock) | 
| 310 | Return res | 
| 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 |