Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\swapops.h Create Date:2022-07-28 10:01:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Store a type+offset into a swp_entry_t in an arch-independent format

Proto:static inline swp_entry_t swp_entry(unsigned long type, unsigned long offset)

Type:swp_entry_t

Parameter:

TypeParameterName
unsigned longtype
unsigned longoffset
33  val = type << swapcache pages are stored in the swapper_space radix tree | offset & SWP_OFFSET_MASK
34  Return ret
Caller
NameDescribe
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