函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:04:14
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lookup_node

函数原型:static int lookup_node(struct mm_struct *mm, unsigned long addr)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
unsigned longaddr
874  locked等于1
875  err等于We can leverage the VM_FAULT_RETRY functionality in the page fault* paths better by using either get_user_pages_locked() or* get_user_pages_unlocked().* get_user_pages_locked() is suitable to replace the form:* down_read(&mm->mmap_sem);* do_something()
876  如果err大于等于0则
877  err等于page_to_nid(p)
878  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
880  如果lockedlease a read lock
882  返回:err
调用者
名称描述
do_get_mempolicyRetrieve NUMA policy