函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:htab_lru_map_delete_elem

函数原型:static int htab_lru_map_delete_elem(struct bpf_map *map, void *key)

返回类型:int

参数:

类型参数名称
struct bpf_map *map
void *key
1141  htab等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(map, structbpf_htab, map)
1147  ret等于负ENOENT
1149  WARN_ON_ONCE(!_read_lock_held() - might we be in RCU read-side critical section?* If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU* read-side critical section)
1151  key_size等于key_size
1153  hash等于htab_map_hash(key, key_size, hashrnd)
1154  b等于__select_bucket(htab, hash)
1155  head等于head
1157  raw_spin_lock_irqsave( & lock, flags)
1159  l等于his lookup function can only be called with bucket lock taken
1161  如果l
1162  hlist_nulls_del_rcu - deletes entry from hash list without re-initialization*@n: the element to delete from the hash list.* Note: hlist_nulls_unhashed() on entry does not return true after this,* the entry is in an undefined state
1163  ret等于0
1166  raw_spin_unlock_irqrestore( & lock, flags)
1167  如果lbpf_lru_push_free( & lru, & lru_node)
1169  返回:ret