Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\devmap.c Create Date:2022-07-28 13:22:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dev_map_hash_remove_netdev

Proto:static void dev_map_hash_remove_netdev(struct bpf_dtab *dtab, struct net_device *netdev)

Type:void

Parameter:

TypeParameterName
struct bpf_dtab *dtab
struct net_device *netdev
747  spin_lock_irqsave( & index_lock, flags)
748  When i < n_buckets cycle
753  head = dev_map_index_hash(dtab, i)
756  If netdev != must be first member, due to tracepoint Then Continue
759  items--
760  hlist_del_rcu - deletes entry from hash list without re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on entry does not return true after this,* the entry is in an undefined state. It is useful for RCU based
761  all_rcu() - Queue an RCU callback for invocation after a grace period
764  spin_unlock_irqrestore( & index_lock, flags)
Caller
NameDescribe
dev_map_notification