Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-28 14:39:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:free_pud_range

Proto:static inline void free_pud_range(struct mmu_gather *tlb, p4d_t *p4d, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling)

Type:void

Parameter:

TypeParameterName
struct mmu_gather *tlb
p4d_t *p4d
unsigned longaddr
unsigned longend
unsigned longfloor
unsigned longceiling
264  start = addr
265  pud = pud_offset(p4d, addr)
266  Do
267  next = pud_addr_end(addr, end)
268  If pud_none_or_clear_bad(pud) Then Continue
270  free_pmd_range(tlb, pud, addr, next, floor, ceiling)
271  When pud++, addr = next , addr != end cycle
273  start &= P4D_MASK
274  If start < floor Then Return
276  If ceiling Then
277  ceiling &= P4D_MASK
278  If Not ceiling Then Return
281  If end - 1 > ceiling - 1 Then Return
284  pud = pud_offset(p4d, start)
285  p4d_clear(p4d)
286  pud_free_tlb(tlb, pud, start)
287  mm_dec_nr_puds(mm)
Caller
NameDescribe
free_p4d_range