Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_handle

Proto:static inline void free_handle(unsigned long handle)

Type:void

Parameter:

TypeParameterName
unsigned longhandle
312  If handle & 1 << PAGE_HEADLESS Then Return
315  If WARN_ON( * (unsignedlong * )handle == 0) Then Return
318  zhdr = Returns the z3fold page where a given handle is stored
319  slots = handle_to_slots(handle)
320  write_lock( & lock)
321  handle = 0
322  write_unlock( & lock)
323  If slots == slots Then Return
327  foreign_handles--
328  is_free = true
329  read_lock( & lock)
330  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
331  read_unlock( & lock)
332  Return
334  When i <= BUDDY_MASK cycle
336  is_free = false
337  Break
340  read_unlock( & lock)
342  If is_free Then
343  pool = slots_to_pool(slots)
345  kmem_cache_free(c_handle, slots)
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_reclaim_pagez3fold_reclaim_page() - evicts allocations from a pool page and frees it*@pool: pool from which a page will attempt to be evicted*@retries: number of pages on the LRU list for which eviction will* be attempted before failing* z3fold reclaim is different