函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:htab_lru_map_delete_node

函数原型:static bool htab_lru_map_delete_node(void *arg, struct bpf_lru_node *node)

返回类型:bool

参数:

类型参数名称
void *arg
struct bpf_lru_node *node
572  htab等于arg
573  l等于NULL
579  tgt_l等于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.(node, structhtab_elem, lru_node)
580  b等于__select_bucket(htab, hash)
581  head等于head
583  raw_spin_lock_irqsave( & lock, flags)
585  hlist_nulls_for_each_entry_rcu - iterate over rcu list of given type*@tpos: the type * to use as a loop cursor.*@pos: the &struct hlist_nulls_node to use as a loop cursor.*@head: the head for your list.(l, n, head, hash_node)
586  如果l恒等于tgt_l
587  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
588  退出
591  raw_spin_unlock_irqrestore( & lock, flags)
593  返回:l恒等于tgt_l