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)
Mon, Jan 19, 10:12 PM
Unknown Object (File)
Sun, Jan 18, 11:00 AM
Unknown Object (File)
Sun, Jan 18, 9:25 AM
Unknown Object (File)
Sun, Jan 18, 6:58 AM
Unknown Object (File)
Dec 12 2025, 9:51 AM
Unknown Object (File)
Nov 27 2025, 9:20 AM
Unknown Object (File)
Nov 27 2025, 3:33 AM
Unknown Object (File)
Nov 17 2025, 2:09 AM

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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37978
Build 34867: arc lint + arc unit