OF_PACKAGE_TO_PATH(9)
π 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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2018 Oleksandr Tymoshenko <gonzo@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms