Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:z3fold_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

Proto:static void z3fold_unmap(struct z3fold_pool *pool, unsigned long handle)

Type:void

Parameter:

TypeParameterName
struct z3fold_pool *pool
unsigned longhandle
1542  zhdr = rn locked z3fold page if it's not headless
1543  page = virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(zhdr)
1545  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return
1548  buddy = (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.
1549  If buddy == MIDDLE Then lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
1551  mapped_count--
1552  put_z3fold_header(zhdr)
Caller
NameDescribe
z3fold_zpool_unmap