函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_swap_page

函数原型:static inline swp_entry_t get_swap_page(struct page *page)

返回类型:swp_entry_t

参数:

类型参数名称
struct page *page
613  val等于0
614  返回:entry
调用者
名称描述
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.