Function report |
Source Code:mm\slab_common.c |
Create Date:2022-07-28 14:29:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Figure out what the alignment of the objects will be given a set of* flags, a user specified alignment and the size of the objects.
Proto:static unsigned int calculate_alignment(slab_flags_t flags, unsigned int align, unsigned int size)
Type:unsigned int
Parameter:
Type | Parameter | Name |
---|---|---|
slab_flags_t | flags | |
unsigned int | align | |
unsigned int | size |
291 | If flags & Align objs on cache lines Then |
294 | ralign = cache_line_size() |
296 | ralign /= 2 |
303 | Return @a is a power of 2 value (align, size of * ) |
Name | Describe |
---|---|
find_mergeable | |
kmem_cache_create_usercopy | kmem_cache_create_usercopy - Create a cache with a region suitable* for copying to userspace*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache. |
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 |