Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_fd_reuseport_array_lookup_elem

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

Type:int

Parameter:

TypeParameterName
struct bpf_map *map
void *key
void *value
187  If value_size != sizeof(u64) Then Return -ENOSPC
190  _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
191  sk = reuseport_array_lookup_elem(map, key)
192  If sk Then
193  value = sock_gen_cookie(sk)
194  err = 0
195  Else
196  err = -ENOENT
198  _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()
200  Return err
Caller
NameDescribe
map_lookup_elem