Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_swap_page

Proto:static inline swp_entry_t get_swap_page(struct page *page)

Type:swp_entry_t

Parameter:

TypeParameterName
struct page *page
613  val = 0
614  Return entry
Caller
NameDescribe
add_to_swapadd_to_swap - allocate swap space for a page*@page: page we want to move to swap* Allocate swap space for the page and add the page to the* swap cache. Caller needs to hold the page lock.