函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:35:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Lock and remove page from the per-cpu list

函数原型:static struct page *rmqueue_pcplist(struct zone *preferred_zone, struct zone *zone, gfp_t gfp_flags, int migratetype, unsigned int alloc_flags)

返回类型:struct page

参数:

类型参数名称
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  循环
3239  const void * __vpp_verify = NULL
3239  当0循环
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  如果page
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  返回:page
调用者
名称描述
rmqueueAllocate a page from the given zone. Use pcplists for order-0 allocations.