函数逻辑报告 |
Source Code:fs\open.c |
Create Date:2022-07-29 10:30:57 |
Last Modify:2020-03-18 10:16:03 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:vfs_fallocate
函数原型:int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
int | mode | |
loff_t | offset | |
loff_t | len |
231 | inode等于file_inode(file) |
238 | 如果mode按位与FALLOC_FL_SUPPORTED_MASK的反则返回:负EOPNOTSUPP |
247 | 如果mode按位与de-allocates range 且非mode按位与default is extend size 的值则返回:负EOPNOTSUPP |
266 | 如果非f_mode按位与le is open for writing 的值则返回:负EBADF |
272 | 如果mode按位与default is extend size 的反且IS_APPEND(inode)则返回:负EPERM |
275 | 如果IS_IMMUTABLE(inode)则返回:负EPERM |
281 | 如果IS_SWAPFILE(inode)则返回:负ETXTBSY |
288 | ret等于security_file_permission(file, MAY_WRITE) |
305 | 如果非fallocate则返回:负EOPNOTSUPP |
308 | file_start_write(file) |
318 | 如果ret恒等于0则snotify_modify - file was modified |
321 | file_end_write(file) |
322 | 返回:ret |
名称 | 描述 |
---|---|
ksys_fallocate | |
ioctl_preallocate | This provides compatibility with legacy XFS pre-allocation ioctls* which predate the fallocate syscall.* Only the l_start, l_len and l_whence fields of the 'struct space_resv'* are used here, rest are ignored. |
compat_ioctl_preallocate | just account for different alignment |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |