Function report |
Source Code:mm\vmalloc.c |
Create Date:2022-07-28 14:58:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:adjust_va_to_fit_type
Proto:static __always_inline int adjust_va_to_fit_type(struct vmap_area *va, unsigned long nva_start_addr, unsigned long size, enum fit_type type)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vmap_area * | va | |
unsigned long | nva_start_addr | |
unsigned long | size | |
enum fit_type | type |
938 | Else if type == left edge fit Then |
947 | Else if type == right edge fit Then |
955 | va_end = nva_start_addr |
956 | Else if type == NE_FIT_TYPE Then |
964 | lva = __this_cpu_xchg(Preload a CPU with one object for "no edge" split case. The* aim is to get rid of allocations from the atomic context, thus* to use more permissive allocation masks., NULL) |
992 | If Not lva Then Return -1 |
1000 | va_end = nva_start_addr |
1005 | va_start = nva_start_addr + size |
1006 | Else |
1007 | Return -1 |
1018 | Return 0 |
Name | Describe |
---|---|
__alloc_vmap_area | Returns a start address of the newly allocated area, if success.* Otherwise a vend is returned that indicates failure. |
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 |