函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:____bpf_get_local_storage

函数原型:static inline __attribute__((__always_inline__)) u64 ____bpf_get_local_storage(struct bpf_map *map, u64 flags)

返回类型:u64

参数:

类型参数名称
struct bpf_map *map
u64flags
339  stype等于cgroup_storage_type(map)
343  storage等于Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(bpf_cgroup_storage[stype])
345  如果stype恒等于BPF_CGROUP_STORAGE_SHAREDptr = & ({
346  union{typeof(buf__val;char __c[1];}__u
346  如果1则__read_once_size( & (buf), __c, buf的长度)
346  否则__read_once_size_nocheck( & (buf), __c, buf的长度)
346  循环
346  当0循环
346  __val
346  })->data[0]
347  否则ptr等于this_cpu_ptr(percpu_buf)
350  返回:ptr