函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\swap.c Create Date:2022-07-27 11:02:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:alloc_swapdev_block - allocate a swap page and register that it has* been allocated, so that it can be freed in case of an error.

函数原型:sector_t alloc_swapdev_block(int swap)

返回类型:sector_t

参数:

类型参数名称
intswap
180  offset等于Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format
181  如果offset
182  如果swsusp_extents_insert(offset)则swap_free(Store a type+offset into a swp_entry_t in an arch-independent format)
184  否则返回:swapdev_block(swap, offset)
187  返回:0
调用者
名称描述
get_swap_writer
swap_write_page
snapshot_ioctl