OF_PACKAGE_TO_PATH(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’… OF_package_to_path β€” get fully qualified path to a device tree node πŸ’…

okay so welcome to the OF_PACKAGE_TO_PATH(9) page, straight out of the Kernel Developer's Manual. This is the little kernel helper that gives you the full path to a device tree node, and yes bestie, it's giving very niche-but-iconic energy. πŸŽ€


🌸 NAME 🌸

OF_package_to_path β€” get fully qualified path to a device tree node

✨ SYNOPSIS ✨

Include these exact headers, no cap:

#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 πŸ¦‹

So 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. That's the whole vibe. πŸ’–

The function returns the number of bytes copied or -1 in case of the error. Periodt.

πŸ”₯ SEE ALSO πŸ”₯

πŸ‘‘ AUTHORS πŸ‘‘

This manual page was written by Oleksandr Tymoshenko <gonzo@FreeBSD.org>.


πŸ’– cute little sign-off time: this page's footer says source/version Debian, date April 9, 2018, and page OF_PACKAGE_TO_PATH(9) β€” bye bestie, go read some device tree paths! πŸŒˆπŸ’…

πŸ“¦ where this page comes from