]> 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>
Tue, 24 Jan 2023 21:49:40 +0000 (14:49 -0700)
commit454b52dc3709f167a91d8c9199fe01f8579c9ffb
tree58d4754dbccb1f3e3294329c3962a017206a9825
parent5df48d2d03860a81d7a1867aeac3c5768109eeac
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

(cherry picked from commit ed3cc2f24829e6c5827f142cfcd9729331a1106c)
stand/libofw/devicename.c
stand/libofw/libofw.h