Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free up the buffer.

Proto:static void big_key_free_buffer(struct big_key_buf *buf)

Type:void

Parameter:

TypeParameterName
struct big_key_buf *buf
143  If virt Then
144  memset(virt, 0, nr_pages * PAGE_SIZE)
145  vunmap(virt)
148  When i < nr_pages cycle If pages[i] Then
150  __free_page(pages[i])
152  kfree(buf)
Caller
NameDescribe
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