Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:htab_map_hash

Proto:static inline u32 htab_map_hash(const void *key, u32 key_len, u32 hashrnd)

Type:u32

Parameter:

TypeParameterName
const void *key
u32key_len
u32hashrnd
407  Return jhash - hash an arbitrary key*@k: sequence of bytes as key*@length: the length of the key*@initval: the previous hash, or an arbitray value* The generic version, hashes an arbitrary sequence of bytes.
Caller
NameDescribe
__htab_map_lookup_elemCalled from syscall or from eBPF program directly, so* arguments have to match bpf_map_lookup_elem() exactly.* The return value is adjusted by BPF instructions* in htab_map_gen_lookup().
htab_map_get_next_keyCalled from syscall
htab_map_update_elemCalled from syscall or from eBPF program
htab_lru_map_update_elem
__htab_percpu_map_update_elem
__htab_lru_percpu_map_update_elem
htab_map_delete_elemCalled from syscall or from eBPF program
htab_lru_map_delete_elem