函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns the number of free chunks in a z3fold page.* NB: can't be used with HEADLESS pages.

函数原型:static int num_free_chunks(struct z3fold_header *zhdr)

返回类型:int

参数:

类型参数名称
struct z3fold_header *zhdr
625  如果middle_chunks不等于0则
626  nfree_before等于如果first_chunks则0否则start_middleZHDR_CHUNKS
628  nfree_after等于如果last_chunks则0否则TOTAL_CHUNKSstart_middlemiddle_chunks
631  nfree等于两数取大(nfree_before, nfree_after)
632  否则nfree等于NCHUNKSfirst_chunkslast_chunks
634  返回:nfree
调用者
名称描述
add_to_unbuddiedAdd to the appropriate unbuddied list