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)
Sun, May 17, 10:40 AM
Unknown Object (File)
Sun, May 17, 9:42 AM
Unknown Object (File)
Sun, May 17, 4:42 AM
Unknown Object (File)
Thu, May 14, 5:43 AM
Unknown Object (File)
Wed, May 6, 6:46 AM
Unknown Object (File)
Wed, May 6, 4:54 AM
Unknown Object (File)
Tue, May 5, 8:40 PM
Unknown Object (File)
Tue, May 5, 5:47 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.