Function report |
Source Code:mm\vmalloc.c |
Create Date:2022-07-28 14:58:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:classify_va_fit_type
Proto:static __always_inline enum fit_type classify_va_fit_type(struct vmap_area *va, unsigned long nva_start_addr, unsigned long size)
Type:enum fit_type
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct vmap_area * | va | |
| unsigned long | nva_start_addr | |
| unsigned long | size |
| 902 | If nva_start_addr < va_start || nva_start_addr + size > va_end Then Return NOTHING_FIT |
| 907 | If va_start == nva_start_addr Then |
| 908 | If va_end == nva_start_addr + size Then type = full fit |
| 910 | Else type = left edge fit |
| 912 | Else if va_end == nva_start_addr + size Then |
| 913 | type = right edge fit |
| 914 | Else |
| 915 | type = NE_FIT_TYPE |
| 918 | Return type |
| 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 |