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 πŸ”₯


πŸ’œ 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