函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\swapops.h Create Date:2022-07-27 11:01:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Store a type+offset into a swp_entry_t in an arch-independent format

函数原型:static inline swp_entry_t swp_entry(unsigned long type, unsigned long offset)

返回类型:swp_entry_t

参数:

类型参数名称
unsigned longtype
unsigned longoffset
33  val等于type左移swapcache pages are stored in the swapper_space radix tree位按位或offset按位与SWP_OFFSET_MASK
34  返回:ret
调用者
名称描述
alloc_swapdev_blockalloc_swapdev_block - allocate a swap page and register that it has* been allocated, so that it can be freed in case of an error.
free_all_swap_pages_all_swap_pages - free swap pages allocated for saving image data.* It also frees the extents used to register which swap entries had been* allocated.
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.
__try_to_reclaim_swaprns 1 if swap entry is freed
scan_swap_map_slots
swap_alloc_cluster
get_swap_page_of_typeThe only caller of this function is now suspend routine
try_to_unuseIf the boolean frontswap is true, only unuse pages_to_unuse pages;* pages_to_unuse==0 means all pages; ignored if frontswap is false
generic_max_swapfile_sizeFind out how many pages are allowed for a single swap device
zswap_frontswap_storeattempts to compress and store an single page
pte_to_swp_entryConvert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t.
make_device_private_entry
make_device_private_entry_read
make_migration_entry
make_migration_entry_read
pmd_to_swp_entry
make_hwpoison_entrySupport for hardware poisoned pages