Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
loff_tmax_size
size_t *allocated_size
intlast_warn
122  order = default is 0 - 1 page.
123  gfp_mask = __GFP_RECLAIM | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success. | __GFP_NORETRY
125  If order Then order = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory, order)
128  When order cycle
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
132  Return ptr
138  gfp_mask = GFP_KERNEL
140  If Not last_warn Then gfp_mask |= DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.
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
Caller
NameDescribe
ima_calc_file_hash_atfm