HomeFreeBSD

new-bus: Use M_WAITOK in more places

Description

new-bus: Use M_WAITOK in more places

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)
Differential Revision: https://reviews.freebsd.org/D49274

Details

Provenance
jhbAuthored on Mon, Mar 10, 5:35 PM
Differential Revision
D49274: new-bus: Use M_WAITOK in more places
Parents
rG78cd83e4017b: devclass_alloc_unit: Go back to using M_WAITOK
Branches
Unknown
Tags
Unknown