函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zbud_free() - frees the allocation associated with the given handle*@pool: pool in which the allocation resided*@handle: handle associated with the allocation returned by zbud_alloc()* In the case that the zbud page in which the allocation resides is

函数原型:void zbud_free(struct zbud_pool *pool, unsigned long handle)

返回类型:void

参数:

类型参数名称
struct zbud_pool *pool
unsigned longhandle
435  加自旋锁
436  zhdr等于Returns the zbud page where a given handle is stored
439  如果handleZHDR_SIZE_ALIGNED按位与PAGE_MASK的反则last_chunks等于0
441  否则first_chunks等于0
444  如果under_reclaim
446  自旋锁解锁
447  返回
451  删除链表项
453  如果first_chunks恒等于0且last_chunks恒等于0则
455  删除链表项
456  Resets the struct page fields and frees the page
457  pages_nr自减
458  否则
460  freechunks等于Returns the number of free chunks in a zbud page
461  添加链表项
464  自旋锁解锁
调用者
名称描述
zbud_zpool_free