函数逻辑报告 |
Source Code:fs\readdir.c |
Create Date:2022-07-29 10:36:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:compat_filldir
函数原型:static int compat_filldir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct dir_context * | ctx | |
const char * | name | |
int | namlen | |
loff_t | offset | |
u64 | ino | |
unsigned int | d_type |
486 | reclen等于@a is a power of 2 value (offsetof(structcompat_linux_dirent, d_name) + namlen + 2, sizeof(compat_long_t)) |
498 | 如果dirent则 |
499 | 如果signal_pending(当前进程)则返回:负EINTR |
504 | dirent等于current_dir |
505 | 如果__put_user - Write a simple value into user space, with less checking(d_ino, & d_ino)则转到:efault |
507 | 如果__put_user - Write a simple value into user space, with less checking(reclen, & d_reclen)则转到:efault |
509 | 如果copy_to_user(d_name, name, namlen)则转到:efault |
511 | 如果__put_user - Write a simple value into user space, with less checking(0, d_name + namlen)则转到:efault |
513 | 如果__put_user - Write a simple value into user space, with less checking(d_type, (char__user * )dirent + reclen - 1)则转到:efault |
517 | current_dir等于dirent |
519 | 返回:0 |
520 | efault : |
522 | 返回:负EFAULT |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |