Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-28 15:20:12
Last Modify:2020-03-17 22:19:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:swp_swap_info

Proto:struct swap_info_struct *swp_swap_info(swp_entry_t entry)

Type:struct swap_info_struct

Parameter:

TypeParameterName
swp_entry_tentry
3489  Return swap_type_to_swap_info(Extract the `type' field from a swp_entry_t. The swp_entry_t is in* arch-independent format)
Caller
NameDescribe
total_swapcache_pages
swap_cluster_readaheadswap_cluster_readahead - swap in pages in hope we need them soon*@entry: swap entry of this memory*@gfp_mask: memory allocation flags*@vmf: fault information* Returns the struct page for entry and addr, after queueing swapin.
__swap_info_get
get_swap_deviceCheck whether swap entry is valid in the swap device
map_swap_entryUse this swapdev's extent info to locate the (PAGE_SIZE) block which* corresponds to page offset for the specified swap entry.* Note that the type of this function is sector_t, but it returns page offset* into the bdev, not sector offset.
page_swap_info