Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int num_free_chunks(struct z3fold_header *zhdr)

Type:int

Parameter:

TypeParameterName
struct z3fold_header *zhdr
625  If middle_chunks != 0 Then
626  nfree_before = If first_chunks Then 0 Else start_middle - ZHDR_CHUNKS
628  nfree_after = If last_chunks Then 0 Else TOTAL_CHUNKS - start_middle + middle_chunks
631  nfree = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(nfree_before, nfree_after)
632  Else nfree = NCHUNKS - first_chunks - last_chunks
634  Return nfree
Caller
NameDescribe
add_to_unbuddiedAdd to the appropriate unbuddied list