Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_free_id

Proto:void bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock)

Type:void

Parameter:

TypeParameterName
struct bpf_prog *prog
booldo_idr_lock
1380  If Not id Then Return
1383  If do_idr_lock Then spin_lock_bh( & prog_idr_lock)
1385  Else __acquire( & prog_idr_lock)
1388  dr_remove() - Remove an ID from the IDR
1389  id = 0
1391  If do_idr_lock Then spin_unlock_bh( & prog_idr_lock)
1393  Else __release( & prog_idr_lock)
Caller
NameDescribe
__bpf_prog_put
__bpf_prog_offload_destroy