Function report |
Source Code:kernel\trace\tracing_map.c |
Create Date:2022-07-28 12:07:14 |
Last Modify:2020-03-17 19:44:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:tracing_map_array_alloc
Proto:struct tracing_map_array *tracing_map_array_alloc(unsigned int n_elts, unsigned int entry_size)
Type:struct tracing_map_array
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | n_elts | |
unsigned int | entry_size |
325 | a = 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). |
326 | If Not a Then Return NULL |
330 | entries_per_page = PAGE_SIZE / (1 << entry_size_shift) |
331 | n_pages = n_elts / entries_per_page |
335 | entry_mask = (1 << entry_shift) - 1 |
337 | pages = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
342 | pages[i] = get_zeroed_page(GFP_KERNEL) |
346 | out : |
347 | Return a |
348 | free : |
349 | tracing_map_array_free(a) |
350 | a = NULL |
352 | Go to out |
Name | Describe |
---|---|
tracing_map_alloc_elts | |
tracing_map_create | racing_map_create - Create a lock-free map and element pool*@map_bits: The size of the map (2 ** map_bits)*@key_size: The size of the key for the map in bytes*@ops: Optional client-defined tracing_map_ops instance*@private_data: Client data associated |
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 |