函数逻辑报告 |
Source Code:fs\block_dev.c |
Create Date:2022-07-29 10:46:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:blkdev_fallocate
函数原型:static long blkdev_fallocate(struct file *file, int mode, loff_t start, loff_t len)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
int | mode | |
loff_t | start | |
loff_t | len |
2083 | bdev等于I_BDEV(bdev_file_inode(file)) |
2090 | 如果mode按位与BLKDEV_FALLOC_FL_SUPPORTED的反则返回:负EOPNOTSUPP |
2098 | 如果mode按位与default is extend size 则 |
2101 | 否则返回:负EINVAL |
2108 | 如果start按位或len的值按位与bdev_logical_block_size(bdev)减1则返回:负EINVAL |
2116 | 当:mode恒等于FALLOC_FL_ZERO_RANGE is used to convert a range of file to zeros preferably* without issuing data IO |
2118 | error等于blkdev_issue_zeroout(bdev, start >> 9, len >> 9, GFP_KERNEL, do not free blocks ) |
2120 | 退出 |
2121 | 当:mode恒等于de-allocates range 按位或default is extend size |
2122 | error等于blkdev_issue_zeroout(bdev, start >> 9, len >> 9, GFP_KERNEL, don't write explicit zeroes ) |
2124 | 退出 |
2125 | 当:mode恒等于de-allocates range 按位或default is extend size 按位或served codepoint |
2126 | error等于blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_KERNEL, 0) |
2128 | 退出 |
2129 | 默认 |
2130 | 返回:负EOPNOTSUPP |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |