Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:52:17
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:map_idr_lock should have been held

Proto:static struct bpf_map *__bpf_map_inc_not_zero(struct bpf_map *map, bool uref)

Type:struct bpf_map

Parameter:

TypeParameterName
struct bpf_map *map
booluref
774  refold = atomic64_fetch_add_unless - add unless the number is already a given value*@v: pointer of type atomic64_t*@a: the amount to add to v
775  If Not refold Then Return ERR_PTR( - ENOENT)
777  If uref Then atomic64_inc( & usercnt)
780  Return map
Caller
NameDescribe
bpf_map_inc_not_zero
bpf_map_get_fd_by_id