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, Sep 17, 7:59 AM
Unknown Object (File)
Wed, Sep 16, 8:58 AM
Unknown Object (File)
Sun, Sep 13, 12:45 PM
Unknown Object (File)
Sat, Sep 5, 3:52 PM
Unknown Object (File)
Sat, Sep 5, 8:58 AM
Unknown Object (File)
Thu, Sep 3, 2:58 PM
Unknown Object (File)
Wed, Sep 2, 12:36 AM
Unknown Object (File)
Tue, Sep 1, 2:13 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.