kernfs_create_link(9)
π kernfs_create_link(9) β like, the symlink maker β¨
okay so real quick, bestie: this is a page from the Kernel API Manual, section 9 (the kernel API girlies, you know the vibe π), and it's all about one tiny little function that makes a symlink in kernfs. that's it. that's the whole job. and honestly? she ate. π
β¨ NAME β¨
kernfs_create_link β create a symlink π
πΈ SYNOPSIS πΈ
struct kernfs_node * kernfs_create_link (struct kernfs_node *parent ,
const char *name , struct kernfs_node *target );
no cap, that's the whole signature. look at her. gorgeous. π
π¦ ARGUMENTS π¦
parentβ the directory you're gonna drop this symlink into. like, the vibes-holder. the home base. πnameβ what the symlink is gonna be called. her name. her whole identity, lowkey. πtargetβ the node the symlink actually points at. the main character she's linking to, fr fr. π₯
π« RETURN π«
- if everything slays: you get the created node back. success. iconic. π
- if something goes wrong: you get an
ERR_PTRvalue. that's the kernel's way of saying "bestieβ¦ no π". check it, don't ignore it. - also important, and I need you to hear me on this one: ownership of the link matches ownership of the target. like, she copies her target's fit. that's the rule. π
ngl, if you skipped the ERR_PTR check, that's not a vibe check you're gonna pass π
π SEE ALSO π
- Kernel file
./fs/kernfs/symlink.cβ go read the source, iykfyk, it's giving transparency π
that's the whole page, bestie, you're basically a kernfs girlie now π β¨
mwah π β this little love letter to symlinks came to you from ./fs/kernfs, dated October 2026, straight out of the Kernel API Manual, section 9. go forth and link responsibly π«Άπ
π¦ 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