函数逻辑报告 |
Source Code:mm\swapfile.c |
Create Date:2022-07-27 16:49:52 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:claim_swapfile
函数原型:static int claim_swapfile(struct swap_info_struct *p, struct inode *inode)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct swap_info_struct * | p | |
struct inode * | inode |
2880 | error等于blkdev_get(swap device or bdev of swap file , le is open for reading | le is open for writing | File is opened with O_EXCL (only set for block devices) , p) |
2882 | 如果error小于0则 |
2883 | swap device or bdev of swap file = NULL |
2884 | 返回:error |
2895 | 如果blk_queue_is_zoned(bd_queue)则返回:负EINVAL |
2897 | SWP_USED etc: see above 或等于SWP_BLKDEV |
2902 | inode_lock(inode) |
2903 | 如果IS_SWAPFILE(inode)则返回:负EBUSY |
2906 | 返回:0 |
名称 | 描述 |
---|---|
SYSCALL_DEFINE2 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |