Page MenuHomeFreeBSD

new-bus: Use M_WAITOK in more places
ClosedPublic

Authored by jhb on Mar 6 2025, 10:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 23, 1:28 AM
Unknown Object (File)
Sun, Oct 19, 1:46 PM
Unknown Object (File)
Sun, Oct 19, 4:06 AM
Unknown Object (File)
Sat, Oct 18, 5:35 PM
Unknown Object (File)
Sat, Oct 18, 12:04 PM
Unknown Object (File)
Sep 20 2025, 7:44 AM
Unknown Object (File)
Sep 17 2025, 5:36 AM
Unknown Object (File)
Sep 15 2025, 6:21 AM
Subscribers

Details

Summary

M_NOWAIT is now only used for devclass_get_devices,
devclass_get_drivers, and device_get_children. Other functions are
generally called from sleepable contexts such as module event
handlers, attach/detach routines, and the ioctl handler for
/dev/devctl2.

Suggested by: mjg (devclass_add_device)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62810
Build 59694: arc lint + arc unit

Event Timeline

This booted fine for me (no WITNESS warnings) in both a bhyve VM and my X1 Carbon.

sys/kern/subr_bus.c
2119

This didn't really handle failure

I think i chamged some of these in my tree. Now if i could jusr find that

This revision was not accepted when it landed; it landed in state Needs Review.Mar 10 2025, 5:36 PM
This revision was automatically updated to reflect the committed changes.