Page MenuHomeFreeBSD

acpi: Use M_WAITOK in acpi_register_ioctl
ClosedPublic

Authored by jhb on Dec 19 2025, 3:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 2, 8:42 PM
Unknown Object (File)
Tue, Jun 30, 7:48 AM
Unknown Object (File)
Tue, Jun 30, 5:38 AM
Unknown Object (File)
Sat, Jun 27, 5:08 PM
Unknown Object (File)
Jun 5 2026, 3:14 AM
Unknown Object (File)
May 17 2026, 10:40 AM
Unknown Object (File)
May 17 2026, 9:42 AM
Unknown Object (File)
May 17 2026, 4:42 AM
Subscribers
None

Details

Summary

This function is only called from device attach routines which can
sleep.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 19 2025, 4:16 PM

BTW, I've thought about adding an acpi_unregister_ioctl_all or the like that just takes the fn argument and unregisters all commands that use the same function. That would be a nicer way to handle unloading of a module that registers multiple handlers.

This revision was automatically updated to reflect the committed changes.