HomeFreeBSD

device_get_path(): take sbuf directly

Description

device_get_path(): take sbuf directly

This allows to fix a bug where sbuf allocation done in the context of
dev_wired_cache_match() must use non-sleepable allocations.

Suggested by: jhb
Reviewed by: jhb, takawata
Discussed with: imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D36899

Details

Provenance
kibAuthored on Oct 8 2022, 12:08 AM
Reviewer
jhb
Differential Revision
D36899: Better handling of nexus and errors for DEV_GET_PATH
Parents
rG8cf783bde353: device_get_path(): handle case when dev is root
Branches
Unknown
Tags
Unknown