HomeFreeBSD

LinuxKPI: add general module_driver(), use it for module_pci_driver()

Description

LinuxKPI: add general module_driver(), use it for module_pci_driver()

Factor out module_pci_driver() from 366d68f283793 into a general
module_driver() so other bus attachments can also use the same kind
of macro without duplicating all the lines.

Redefine module_pci_driver() using the new general macro.

No functional changes intended.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D46467

Details

Provenance
bzAuthored on Aug 28 2024, 2:21 PM
Reviewer
manu
Differential Revision
D46467: LinuxKPI: add general module_driver(), use it for module_pci_driver()
Parents
rGd52c31904218: arm64: Make shareability attributes dynamic
Branches
Unknown
Tags
Unknown