Function report |
Source Code:kernel\bpf\helpers.c |
Create Date:2022-07-28 13:08:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:____bpf_get_local_storage
Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_get_local_storage(struct bpf_map *map, u64 flags)
Type:u64
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_map * | map | |
u64 | flags |
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 | If stype == BPF_CGROUP_STORAGE_SHARED Then ptr = & ({ |
346 | If 1 Then __read_once_size( & (buf), __c, size of buf ) |
346 | Else __read_once_size_nocheck( & (buf), __c, size of buf ) |
346 | Do |
346 | When 0 cycle |
346 | __val |
346 | })->data[0] |
347 | Else ptr = this_cpu_ptr(percpu_buf) |
350 | Return ptr |
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 |