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
F167764127: D54312.id168618.diff
Mon, Aug 24, 9:10 AM
Unknown Object (File)
Sun, Aug 23, 12:26 AM
Unknown Object (File)
Fri, Aug 21, 10:01 PM
Unknown Object (File)
Fri, Aug 21, 9:59 PM
Unknown Object (File)
Thu, Aug 13, 3:41 AM
Unknown Object (File)
Mon, Aug 10, 10:29 AM
Unknown Object (File)
Mon, Aug 10, 10:20 AM
Unknown Object (File)
Sun, Aug 9, 8:24 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.