diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-03 17:50:35 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-03 17:51:02 -0400 |
commit | 8378d14cc0f4996080e21c84491ba9b8fcb679a4 (patch) | |
tree | ffbf2f0bfa473003ff1b6992fea685a2860f285f /sys/dev | |
parent | 197b0ecd37e8c41015586ee9711c807b9b625b0b (diff) |
kernel: driver: Assign names to all drivers
Assign a name to each driver through the DRIVER_EXPORT() or
DRIVER_DEFER() macros. This can be used for blacklisting driver
startups.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/dmi/dmi.c | 2 | ||||
-rw-r--r-- | sys/dev/ic/ahci.c | 2 | ||||
-rw-r--r-- | sys/dev/ic/nvme.c | 2 | ||||
-rw-r--r-- | sys/dev/phy/e1000.c | 2 | ||||
-rw-r--r-- | sys/dev/phy/rtl.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/xhci.c | 2 | ||||
-rw-r--r-- | sys/dev/video/fbdev.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/dmi/dmi.c b/sys/dev/dmi/dmi.c index 8c7f21c..59946ad 100644 --- a/sys/dev/dmi/dmi.c +++ b/sys/dev/dmi/dmi.c @@ -248,4 +248,4 @@ dmi_init(void) return 0; } -DRIVER_EXPORT(dmi_init); +DRIVER_EXPORT(dmi_init, "dmi"); diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c index 5dbf4a7..d17c6a3 100644 --- a/sys/dev/ic/ahci.c +++ b/sys/dev/ic/ahci.c @@ -1040,4 +1040,4 @@ static struct bdevsw ahci_bdevsw = { .bsize = ahci_dev_bsize }; -DRIVER_DEFER(ahci_init); +DRIVER_DEFER(ahci_init, "ahci"); diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 822b085..147ab4f 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -662,4 +662,4 @@ static struct bdevsw nvme_bdevsw = { .write = nowrite }; -DRIVER_DEFER(nvme_init); +DRIVER_DEFER(nvme_init, "nvme"); diff --git a/sys/dev/phy/e1000.c b/sys/dev/phy/e1000.c index 95efe6d..41a2a27 100644 --- a/sys/dev/phy/e1000.c +++ b/sys/dev/phy/e1000.c @@ -355,4 +355,4 @@ e1000_init(void) return 0; } -DRIVER_EXPORT(e1000_init); +DRIVER_EXPORT(e1000_init, "e1000"); diff --git a/sys/dev/phy/rtl.c b/sys/dev/phy/rtl.c index 691f767..d096d1a 100644 --- a/sys/dev/phy/rtl.c +++ b/sys/dev/phy/rtl.c @@ -440,4 +440,4 @@ rt81xx_init(void) return rt_init_mac(); } -DRIVER_DEFER(rt81xx_init); +DRIVER_DEFER(rt81xx_init, "rtl81xx"); diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index 46ec4af..0ccb7a0 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -545,4 +545,4 @@ xhci_init(void) return xhci_init_hc(&xhc); } -DRIVER_EXPORT(xhci_init); +DRIVER_EXPORT(xhci_init, "xhci"); diff --git a/sys/dev/video/fbdev.c b/sys/dev/video/fbdev.c index 8a2499d..6b1c6c8 100644 --- a/sys/dev/video/fbdev.c +++ b/sys/dev/video/fbdev.c @@ -135,4 +135,4 @@ static const struct ctlops fb_size_ctl = { .write = NULL, }; -DRIVER_EXPORT(fbdev_init); +DRIVER_EXPORT(fbdev_init, "fbdev"); |