函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-27 16:50:38
Last Modify:2020-03-17 22:19:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:swp_swap_info

函数原型:struct swap_info_struct *swp_swap_info(swp_entry_t entry)

返回类型:struct swap_info_struct

参数:

类型参数名称
swp_entry_tentry
3489  返回:swap_type_to_swap_info(Extract the `type' field from a swp_entry_t. The swp_entry_t is in* arch-independent format)
调用者
名称描述
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