Thread (13 messages) 13 messages, 3 authors, 2024-03-22

Re: [PATCH RFC 2/7] net: Add helpers for netdev LEDs

From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-03-21 15:43:23

On Thu, 21 Mar 2024 16:35:20 +0100 Andrew Lunn wrote:
The struct device is actually part of struct net_device. It is not a
pointer to a bus device. We have register_netdevice() ->
netdev_register_kobject() -> device_initialize(). So the struct device
in struct net_device to registered to the driver core.

unregister_netdevice_many_notify() -> netdev_unregister_kobject() ->
device_del() -> devres_release_all().
Ah, I thought it's only triggered on bus remove. I guess it must be
triggered on both.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help