pseries_of_derive_parent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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