sysfs_create_link_sd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the Kernel API Manual ✨ β€” yes this is the Kernel API Manual, the manual for the kernel API, we're doing this πŸ’…


πŸ’– NAME πŸ’–

sysfs_create_link_sd β€” create symlink to a given object. that's it, that's the whole vibe πŸŽ€


✨ SYNOPSIS ✨

int sysfs_create_link_sd (struct kernfs_node *kn , struct kobject
       *target , const char *name );

like, copy that exactly please, it's giving "three arguments, one int" and we respect the signature in this house 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • kn β€” directory we're creating the link in. that's your home base, the place it all goes down 🏠
  • target β€” object we're pointing to. the main character the symlink is literally obsessed with πŸ‘‘
  • name β€” name of the symlink. what you're gonna call it, so pick something cute fr fr πŸŽ€

🌈 SEE ALSO 🌈

kernel file ./fs/sysfs/symlink.c and its little friend group:

like the whole symlink squad, iykyk πŸ’…


ngl bestie, if you got this far you're highkey a kernel dev now ✨ no cap 🧚

so like, that's a wrap on sysfs_create_link_sd(9) πŸ’– this lil love letter came from ./fs/sysfs 🌸 in October 2026 ⭐ as part of the Kernel API Manual πŸŽ€ periodt πŸ‘‘

πŸ“¦ where this page comes from