]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand/ofw: Add ofw_path_to_handle
authorWarner Losh <imp@FreeBSD.org>
Wed, 30 Nov 2022 22:10:00 +0000 (15:10 -0700)
committerWarner Losh <imp@FreeBSD.org>
Wed, 30 Nov 2022 22:30:33 +0000 (15:30 -0700)
commited3cc2f24829e6c5827f142cfcd9729331a1106c
treea71ca322f3dc1f94a82646cfb9b85d01b97fc859
parent40d340acb9316db5771fe777e279776b903336d4
stand/ofw: Add ofw_path_to_handle

ofw_path_to_handle converts a path string to a phandle_t. It searches
down the path for the first device whose type matches the passed-in
string.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D37556
stand/libofw/devicename.c
stand/libofw/libofw.h