Page MenuHomeFreeBSD

LinuxKPI: netdevice notifier callback argument
ClosedPublic

Authored by bz on Mar 21 2021, 9:32 PM.
Tags
None
Referenced Files
F176310972: D29365.id86114.diff
Sat, Oct 17, 8:11 PM
F176303390: D29365.id86335.diff
Sat, Oct 17, 7:03 PM
Unknown Object (File)
Sat, Oct 10, 10:52 PM
Unknown Object (File)
Thu, Oct 8, 10:32 AM
Unknown Object (File)
Sun, Oct 4, 5:26 PM
Unknown Object (File)
Tue, Sep 22, 5:22 AM
Unknown Object (File)
Mon, Sep 21, 3:11 PM
Unknown Object (File)
Sep 11 2026, 3:39 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable