函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Free up the buffer.

函数原型:static void big_key_free_buffer(struct big_key_buf *buf)

返回类型:void

参数:

类型参数名称
struct big_key_buf *buf
143  如果virt
144  memset(virt, 0, nr_pages * PAGE_SIZE)
145  vunmap(virt)
148 i小于nr_pages循环如果pages[i]则
150  __free_page(pages[i])
152  释放内存
调用者
名称描述
big_key_alloc_bufferAllocate a buffer consisting of a set of pages with a virtual mapping* applied over them.
big_key_preparsePreparse a big key
big_key_readad the key data* - the key's semaphore is read-locked