Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:19:27 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:claim_swapfile
Proto:static int claim_swapfile(struct swap_info_struct *p, struct inode *inode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If error < 0 Then |
2883 | swap device or bdev of swap file = NULL |
2884 | Return error |
2895 | If blk_queue_is_zoned(bd_queue) Then Return -EINVAL |
2897 | SWP_USED etc: see above |= SWP_BLKDEV |
2902 | inode_lock(inode) |
2903 | If IS_SWAPFILE(inode) Then Return -EBUSY |
2906 | Return 0 |
Name | Describe |
---|---|
SYSCALL_DEFINE2 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |