Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:(handle & BUDDY_MASK) < zhdr->first_num is possible in encode_handle* but that doesn't matter. because the masking will result in the* correct buddy number.

Proto:static enum buddy handle_to_buddy(unsigned long handle)

Type:enum buddy

Parameter:

TypeParameterName
unsigned longhandle
506  slots = handle_to_slots(handle)
509  read_lock( & lock)
510  WARN_ON(handle & (1 << PAGE_HEADLESS))
511  addr = handle
512  read_unlock( & lock)
513  zhdr = addr & PAGE_MASK
514  Return addr - first_num & BUDDY_MASK
Caller
NameDescribe
z3fold_freez3fold_free() - frees the allocation associated with the given handle*@pool: pool in which the allocation resided*@handle: handle associated with the allocation returned by z3fold_alloc()* In the case that the z3fold page in which the allocation resides
z3fold_mapz3fold_map() - maps the allocation associated with the given handle*@pool: pool in which the allocation resides*@handle: handle associated with the allocation to be mapped* Extracts the buddy number from handle and constructs the pointer to the
z3fold_unmapz3fold_unmap() - unmaps the allocation associated with the given handle*@pool: pool in which the allocation resides*@handle: handle associated with the allocation to be unmapped