Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\arraymap.c Create Date:2022-07-28 13:11:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ly called from syscall

Proto:int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value)

Type:int

Parameter:

TypeParameterName
struct bpf_map *map
void *key
u32 *value
554  ret = 0
556  If Not map_fd_sys_lookup_elem Then Return -Operation is not supported
559  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
560  elem = Called from syscall or from eBPF program
561  If elem && (ptr = READ_ONCE( * elem)) Then value = map_fd_sys_lookup_elem(ptr)
563  Else ret = -ENOENT
565  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
567  Return ret
Caller
NameDescribe
map_lookup_elem