Function report |
Source Code:security\integrity\ima\ima_crypto.c |
Create Date:2022-07-28 19:58:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ma_alloc_pages() - Allocate contiguous pages
Proto:static void *ima_alloc_pages(loff_t max_size, size_t *allocated_size, int last_warn)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
loff_t | max_size | |
size_t * | allocated_size | |
int | last_warn |
122 | order = default is 0 - 1 page. |
129 | ptr = Common helper functions. Never use with __GFP_HIGHMEM because the returned* address cannot represent highmem pages. Use alloc_pages and then kmap if* you need to access high mem. |
130 | If ptr Then |
131 | allocated_size = PAGE_SIZE << order |
132 | Return ptr |
138 | gfp_mask = GFP_KERNEL |
143 | ptr = Common helper functions. Never use with __GFP_HIGHMEM because the returned* address cannot represent highmem pages. Use alloc_pages and then kmap if* you need to access high mem. |
144 | If ptr Then |
145 | allocated_size = PAGE_SIZE |
146 | Return ptr |
149 | allocated_size = 0 |
150 | Return NULL |
Name | Describe |
---|---|
ima_calc_file_hash_atfm |
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 |