Page MenuHomeFreeBSD

LinuxKPI: netdevice notifier callback argument
ClosedPublic

Authored by bz on Mar 21 2021, 9:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 12, 5:41 AM
Unknown Object (File)
Wed, Jun 10, 11:17 PM
Unknown Object (File)
Fri, May 29, 7:02 AM
Unknown Object (File)
Fri, May 29, 12:36 AM
Unknown Object (File)
Thu, May 28, 11:31 PM
Unknown Object (File)
Wed, May 27, 10:15 AM
Unknown Object (File)
May 2 2026, 4:17 PM
Unknown Object (File)
May 1 2026, 3:16 PM

Details

Summary

Introduce struct netdev_notifier_info as a container to pass
net_device to the callback functions.
Adjust netdev_notifier_info_to_dev() to return the net_device field.

Add explicit casts from ifp to ni->dev even though currently
struct net_device is defined to struct ifnet. This is needed in
preparation for untangling this and improving the net_device compat
code.

Obtained-from: bz_iwlwifi
Sponsored-by: The FreeBSD Foundation
MFC-after: 2 weeks
Reviewed-by: ...

Differential Revision:

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable