Function report |
Source Code:fs\timerfd.c |
Create Date:2022-07-28 20:19:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:timerfd_read
Proto:static ssize_t timerfd_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 |
251 | ticks = 0 |
255 | spin_lock_irq( & lock) |
256 | If f_flags & O_NONBLOCK Then res = -EAGAIN |
266 | If timerfd_canceled(ctx) Then |
272 | If ticks Then |
283 | ticks += alarm_forward_now( & alarm, tintv) - 1 |
285 | alarm_restart( & alarm) |
286 | Else |
292 | expired = 0 |
293 | ticks = 0 |
295 | spin_unlock_irq( & lock) |
296 | If ticks Then res = If Write a simple value into user space(ticks, (u64__user * )buf) Then -EFAULT Else size of ticks |
298 | 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 |