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
F175939044: D54312.diff
Wed, Oct 14, 3:59 PM
Unknown Object (File)
Tue, Oct 13, 2:02 AM
Unknown Object (File)
Thu, Oct 8, 8:42 PM
Unknown Object (File)
Wed, Oct 7, 3:30 PM
Unknown Object (File)
Sun, Oct 4, 8:19 PM
Unknown Object (File)
Sat, Oct 3, 12:11 PM
Unknown Object (File)
Fri, Oct 2, 3:42 PM
Unknown Object (File)
Wed, Sep 30, 11:28 PM
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.