函数逻辑报告 |
Source Code:fs\notify\fanotify\fanotify_user.c |
Create Date:2022-07-29 10:50:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:fanotify_read
函数原型:static ssize_t fanotify_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
char __user * | buf | |
size_t | count | |
loff_t * | pos |
349 | 当1循环 |
351 | 如果是错误则 |
356 | 如果非kevent则 |
358 | 如果f_flags按位与O_NONBLOCK则退出 |
362 | 如果signal_pending(当前进程)则退出 |
369 | 继续下一循环 |
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. |
373 | 如果此条件成立可能性小(为编译器优化)(ret == - pen found a stale dentry )则 |
380 | ret等于0 |
387 | 如果非fanotify_is_perm_event(mask)则 |
389 | 否则 |
411 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |