pseries_of_derive_parent(9)
π pseries_of_derive_parent β pseries_of_derive_parent(9) π
ok so bestie, welcome to the Kernel API Manual entry for pseries_of_derive_parent(9) β¨ this one's a tiny little cutie in the powerpc/pseries corner of the kernel, and honestly? she's giving "glorified dirname" and she knows it π
β¨ NAME β¨
pseries_of_derive_parent β basically like dirname(1) π«Ά that's it, that's the whole vibe, no cap.
πΈ SYNOPSIS πΈ
struct device_node * pseries_of_derive_parent (const char *path );
yep that's the whole signature, go off king π
π¦ ARGUMENTS π¦
pathβ the full_name of a node to be added to the tree π³ like, the actual full name string of the node, okay? that's the thing you're handing her.
π DESCRIPTION π
so what does she actually do?? she returns the node that should be the parent of the node described by path π lowkey iconic.
the example that lives in the docs and honestly carries the whole page:
for path = "/foo/bar", she returns the node with full_name = "/foo" β
so yeah β you point her at a path, she hands you back the node one level up. it's giving dirname, it's giving "who's your mother", it's giving parent energy fr fr πβ¨
π₯ SEE ALSO π₯
- Kernel file
./arch/powerpc/platforms/pseries/of_helpers.cβ go read the source, bestie, it's right there ππ
and that's the whole page!! mwah π this little entry ships out of ./arch/powerpc/platforms/pseries, under the very official Kernel API Manual banner, dated October 2026 β so like, mark your calendar, she's a fall release girly πππ«
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms