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
F142763662: D54312.diff
Fri, Jan 23, 7:44 AM
Unknown Object (File)
Sat, Jan 17, 1:12 PM
Unknown Object (File)
Fri, Jan 16, 1:18 AM
Unknown Object (File)
Tue, Jan 13, 10:54 AM
Unknown Object (File)
Mon, Jan 12, 8:26 PM
Unknown Object (File)
Mon, Jan 12, 4:06 PM
Unknown Object (File)
Sat, Jan 10, 4:16 PM
Unknown Object (File)
Sat, Jan 10, 5:08 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.