Function report |
Source Code:security\keys\big_key.c |
Create Date:2022-07-28 18:28:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Allocate a buffer consisting of a set of pages with a virtual mapping* applied over them.
Proto:static void *big_key_alloc_buffer(size_t len)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
size_t | len |
162 | npg = len + PAGE_SIZE - 1 >> PAGE_SHIFT determines the page size |
165 | buf = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
169 | If Not buf Then Return NULL |
177 | pages[i] = alloc_page(GFP_KERNEL) |
186 | virt = vmap(pages, nr_pages, vmap()ed pages , PAGE_KERNEL) |
190 | Return buf |
192 | nomem : |
194 | Return NULL |
Name | Describe |
---|---|
big_key_preparse | Preparse a big key |
big_key_read | ad the key data* - the key's semaphore is read-locked |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |