OF_PACKAGE_TO_PATH(9)
β¨ OF_PACKAGE_TO_PATH(9) β¨
okay bestie, so this is the OF_PACKAGE_TO_PATH(9) page from the Kernel Developer's Manual, and it's literally here to help you turn a device tree node into its full path. no cap. π¦
πΈ NAME πΈ
OF_package_to_path β get the fully qualified path to a device tree node π
β¨ SYNOPSIS β¨
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
ssize_t
OF_package_to_path(phandle_t node, char *buf, size_t len);
π DESCRIPTION π
OF_package_to_path() copies at most len bytes of the fully qualified path to the device tree node node into the memory specified by buf. π«Ά
The function returns the number of bytes copied, or -1 in case of the error. that's it, that's the whole vibe check. π
bestie, watch the -1 β if it comes back, something went wrong, and it is not giving success energy. π
π₯ SEE ALSO π₯
OF_finddevice(9)β go look this one up too, iykyk π
π AUTHORS π
This manual page was written by Oleksandr Tymoshenko <gonzo@FreeBSD.org>. iconic behavior, honestly. β¨
Debian Β· April 9, 2018 Β· mwah, that's the whole page, bestie β slay, stay safe, and may your paths always be fully qualified. π ππ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2018 Oleksandr Tymoshenko <gonzo@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms