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/arch/amd64 | |
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/arch/amd64')
-rw-r--r-- | sys/arch/amd64/isa/i8042.c | 2 | ||||
-rw-r--r-- | sys/arch/amd64/isa/mc1468.c | 2 | ||||
-rw-r--r-- | sys/arch/amd64/isa/spkr.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/isa/i8042.c b/sys/arch/amd64/isa/i8042.c index eb8960c..69d9f92 100644 --- a/sys/arch/amd64/isa/i8042.c +++ b/sys/arch/amd64/isa/i8042.c @@ -435,4 +435,4 @@ i8042_init(void) return 0; } -DRIVER_EXPORT(i8042_init); +DRIVER_EXPORT(i8042_init, "i8042"); diff --git a/sys/arch/amd64/isa/mc1468.c b/sys/arch/amd64/isa/mc1468.c index bbaa3d1..1f3ae1d 100644 --- a/sys/arch/amd64/isa/mc1468.c +++ b/sys/arch/amd64/isa/mc1468.c @@ -278,4 +278,4 @@ static struct cdevsw mc1468_cdevsw = { .write = mc1468_dev_write, }; -DRIVER_EXPORT(mc1468_init); +DRIVER_EXPORT(mc1468_init, "mc1468"); diff --git a/sys/arch/amd64/isa/spkr.c b/sys/arch/amd64/isa/spkr.c index b2f63b0..c96e5f9 100644 --- a/sys/arch/amd64/isa/spkr.c +++ b/sys/arch/amd64/isa/spkr.c @@ -119,4 +119,4 @@ static struct cdevsw beep_cdevsw = { .write = dev_write }; -DRIVER_EXPORT(beep_init); +DRIVER_EXPORT(beep_init, "pcspkr"); |