函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trylock_zspage

函数原型:static int trylock_zspage(struct zspage *zspage)

返回类型:int

参数:

类型参数名称
struct zspage *zspage
918 cursor != NULL循环
921  fail等于cursor
922  转到:unlock
926  返回:1
927  unlock :
928 cursor不等于fail循环lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
932  返回:0
调用者
名称描述
free_zspage