Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\swap.c Create Date:2022-07-28 10:02:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:sector_t alloc_swapdev_block(int swap)

Type:sector_t

Parameter:

TypeParameterName
intswap
180  offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format
181  If offset Then
182  If swsusp_extents_insert(offset) Then swap_free(Store a type+offset into a swp_entry_t in an arch-independent format)
184  Else Return swapdev_block(swap, offset)
187  Return 0
Caller
NameDescribe
get_swap_writer
swap_write_page
snapshot_ioctl