Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Lock and remove page from the per-cpu list

Proto:static struct page *rmqueue_pcplist(struct zone *preferred_zone, struct zone *zone, gfp_t gfp_flags, int migratetype, unsigned int alloc_flags)

Type:struct page

Parameter:

TypeParameterName
struct zone *preferred_zone
struct zone *zone
gfp_tgfp_flags
intmigratetype
unsigned intalloc_flags
3238  local_irq_save(flags)
3239  pcp = & ({
3239  0
3239  ({
3239  Do
3239  const void * __vpp_verify = NULL
3239  When 0 cycle
3239  pageset
3239  })
3239  })->pcp
3240  list = Lists of pages, one per migrate type stored on the pcp-lists [migratetype]
3241  page = Remove page from the per-cpu list, caller must protect the list
3242  If page Then
3243  __count_zid_vm_events(PGALLOC, page_zonenum(page), 1)
3244  Update NUMA hit/miss statistics* Must be called with interrupts disabled.
3246  local_irq_restore(flags)
3247  Return page
Caller
NameDescribe
rmqueueAllocate a page from the given zone. Use pcplists for order-0 allocations.