Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dev_map_notification

Proto:static int dev_map_notification(struct notifier_block *notifier, ulong event, void *ptr)

Type:int

Parameter:

TypeParameterName
struct notifier_block *notifier
ulongevent
void *ptr
770  netdev = netdev_notifier_info_to_dev(ptr)
775  Case event == NETDEV_UNREGISTER
781  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
785  Continue
788  When i < max_entries cycle
792  If Not dev || netdev != must be first member, due to tracepoint Then Continue
794  odev = cmpxchg( & DEVMAP type only [i], dev, NULL)
800  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
801  Break
802  Default
803  Break
805  Return Suits me