函数逻辑报告 |
Source Code:fs\stat.c |
Create Date:2022-07-29 10:32:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:For backward compatibility? Maybe this should be moved* into arch/i386 instead?
函数原型:static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user *statbuf)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kstat * | stat | |
struct __old_kernel_stat __user * | statbuf |
211 | warncount等于5 |
214 | 如果warncount大于0则 |
215 | warncount自减 |
218 | 否则如果warncount小于0则 |
220 | warncount等于0 |
223 | memset( & tmp, 0, sizeof(struct__old_kernel_stat)) |
224 | st_dev等于old_encode_dev(dev) |
233 | SET_GID(st_gid, from_kgid_munged(current_user_ns(), gid)) |
234 | st_rdev等于old_encode_dev(rdev) |
236 | 如果size大于MAX_NON_LFS则返回:负EOVERFLOW |
243 | 返回:如果copy_to_user(statbuf, & tmp, tmp的长度)则负EFAULT否则0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |