函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\hashtab.c Create Date:2022-07-27 14:25:42
Last Modify:2022-05-23 09:15:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:free_htab_elem

函数原型:static void free_htab_elem(struct bpf_htab *htab, struct htab_elem *l)

返回类型:void

参数:

类型参数名称
struct bpf_htab *htab
struct htab_elem *l
680  map等于map
682  如果map_fd_put_ptr
683  ptr等于fd_htab_map_get_ptr(map, l)
685  map_fd_put_ptr(ptr)
688  如果htab_is_prealloc(htab)则
689  __pcpu_freelist_* do spin_lock only. caller must disable irqs.
690  否则
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
调用者
名称描述
htab_map_update_elemCalled from syscall or from eBPF program
htab_map_delete_elemCalled from syscall or from eBPF program