Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:array_map_mmap

Proto:static int array_map_mmap(struct bpf_map *map, struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
struct bpf_map *map
struct vm_area_struct *vma
483  array = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(map, structbpf_array, map)
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)