Function report |
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 activity | Download SCCT | Chinese |
Name:dev_map_notification
Proto:static int dev_map_notification(struct notifier_block *notifier, ulong event, void *ptr)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct notifier_block * | notifier | |
| ulong | event | |
| void * | ptr |
| 770 | netdev = netdev_notifier_info_to_dev(ptr) |
| 775 | Case event == NETDEV_UNREGISTER |
| 783 | If map_type == BPF_MAP_TYPE_DEVMAP_HASH Then |
| 785 | Continue |
| 788 | When i < max_entries cycle |
| 791 | dev = READ_ONCE( DEVMAP type only [i]) |
| 792 | If Not dev || netdev != must be first member, due to tracepoint Then Continue |
| 794 | odev = cmpxchg( & DEVMAP type only [i], dev, NULL) |
| 801 | Break |
| 802 | Default |
| 803 | Break |
| 805 | Return Suits me |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |