Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:htab_lru_map_delete_node

Proto:static bool htab_lru_map_delete_node(void *arg, struct bpf_lru_node *node)

Type:bool

Parameter:

TypeParameterName
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  If l == tgt_l Then
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  Break
591  raw_spin_unlock_irqrestore( & lock, flags)
593  Return l == tgt_l