Function report |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-28 13:11:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:array_map_mmap
Proto:static int array_map_mmap(struct bpf_map *map, struct vm_area_struct *vma)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_map * | map | |
struct vm_area_struct * | vma |
484 | pgoff = align the pointer to the (next) page boundary ( size of array ) >> PAGE_SHIFT determines the page size |
486 | If Not (map_flags & Enable memory-mapping BPF map ) Then Return -EINVAL |
489 | Return remap_vmalloc_range(vma, array_map_vmalloc_addr(array), pgoff) |
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 |