函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Add to the appropriate unbuddied list

函数原型:static inline void add_to_unbuddied(struct z3fold_pool *pool, struct z3fold_header *zhdr)

返回类型:void

参数:

类型参数名称
struct z3fold_pool *pool
struct z3fold_header *zhdr
641  如果first_chunks恒等于0或last_chunks恒等于0或middle_chunks恒等于0则
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  加自旋锁
647  添加链表项
648  自旋锁解锁
649  cpu等于当前cpu ID()
650  put_cpu_ptr(unbuddied)
调用者
名称描述
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