Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_htab_elem

Proto:static void free_htab_elem(struct bpf_htab *htab, struct htab_elem *l)

Type:void

Parameter:

TypeParameterName
struct bpf_htab *htab
struct htab_elem *l
680  map = map
682  If map_fd_put_ptr Then
683  ptr = fd_htab_map_get_ptr(map, l)
685  map_fd_put_ptr(ptr)
688  If htab_is_prealloc(htab) Then
689  __pcpu_freelist_* do spin_lock only. caller must disable irqs.
690  Else
691  atomic_dec( & number of elements in this hashtable )
692  htab = htab
693  all_rcu() - Queue an RCU callback for invocation after a grace period
Caller
NameDescribe
htab_map_update_elemCalled from syscall or from eBPF program
htab_map_delete_elemCalled from syscall or from eBPF program