函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\arraymap.c Create Date:2022-07-27 14:27:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:array_map_mmap

函数原型:static int array_map_mmap(struct bpf_map *map, struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
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 (array的长度)右移PAGE_SHIFT determines the page size
486  如果非map_flags按位与Enable memory-mapping BPF map 的值则返回:负EINVAL
489  返回:remap_vmalloc_range(vma, array_map_vmalloc_addr(array), pgoff)