Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Add to the appropriate unbuddied list

Proto:static inline void add_to_unbuddied(struct z3fold_pool *pool, struct z3fold_header *zhdr)

Type:void

Parameter:

TypeParameterName
struct z3fold_pool *pool
struct z3fold_header *zhdr
641  If first_chunks == 0 || last_chunks == 0 || middle_chunks == 0 Then
643  unbuddied = get_cpu_ptr(unbuddied)
645  freechunks = Returns the number of free chunks in a z3fold page.* NB: can't be used with HEADLESS pages.
646  spin_lock( & lock)
647  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
648  spin_unlock( & lock)
649  cpu = smp_processor_id()
650  put_cpu_ptr(unbuddied)
Caller
NameDescribe
compact_single_buddy
do_compact_page
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