Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Initializes the z3fold header of a newly allocated z3fold page

Proto:static struct z3fold_header *init_z3fold_page(struct page *page, bool headless, struct z3fold_pool *pool, gfp_t gfp)

Type:struct z3fold_header

Parameter:

TypeParameterName
struct page *page
boolheadless
struct z3fold_pool *pool
gfp_tgfp
401  zhdr = page_address(page)
404  Initialization list head
405  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
406  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
407  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
408  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
409  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
410  If headless Then Return zhdr
413  slots = alloc_slots(pool, gfp)
414  If Not slots Then Return NULL
417  Process spin lock initialization( & page_lock)
418  kref_init - initialize object.*@kref: object in question.
419  first_chunks = 0
420  middle_chunks = 0
421  last_chunks = 0
422  first_num = 0
423  start_middle = 0
424  cpu = -1
425  foreign_handles = 0
426  slots = slots
427  pool = pool
428  Initialization list head
429  INIT_WORK( & work, compact_page_work)
430  Return zhdr
Caller
NameDescribe
z3fold_allocz3fold_alloc() - allocates a region of a given size*@pool: z3fold pool from which to allocate*@size: size in bytes of the desired allocation*@gfp: gfp flags used if the pool needs to grow*@handle: handle of the new allocation* This function will attempt