Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pud_lock

Proto:static inline spinlock_t *pud_lock(struct mm_struct *mm, pud_t *pud)

Type:spinlock_t

Parameter:

TypeParameterName
struct mm_struct *mm
pud_t *pud
2048  ptl = No scalability reason to split PUD locks yet, but follow the same pattern* as the PMD locks to make it easier if we decide to. The VM should not be* considered ready to switch to split PUD locks yet; there may be places
2050  spin_lock(ptl)
2051  Return ptl
Caller
NameDescribe
follow_pud_mask
__pud_trans_huge_lockReturns true if a given pud maps a thp, false otherwise.* Note that if it returns true, this routine returns without unlocking page* table lock. So callers must unlock it.