Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:31:30
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lookup_node

Proto:static int lookup_node(struct mm_struct *mm, unsigned long addr)

Type:int

Parameter:

TypeParameterName
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  If err >= 0 Then
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  If locked Then lease a read lock
882  Return err
Caller
NameDescribe
do_get_mempolicyRetrieve NUMA policy