Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\hashtab.c Create Date:2022-07-28 13:10:33
Last Modify:2022-05-23 09:15:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ly called from syscall

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

Type:int

Parameter:

TypeParameterName
struct bpf_map *map
void *key
u32 *value
1416  ret = 0
1418  If Not map_fd_sys_lookup_elem Then Return -Operation is not supported
1421  _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
1422  ptr = htab_map_lookup_elem(map, key)
1423  If ptr Then value = map_fd_sys_lookup_elem(READ_ONCE( * ptr))
1425  Else ret = -ENOENT
1427  _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()
1429  Return ret
Caller
NameDescribe
map_lookup_elem