fscrypt_get_symlink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, so this page lives in the Kernel API Manual and it's literally all about fscrypt_get_symlink β€” the function that goes and gets you the target of an encrypted symlink. yes, encrypted symlinks are a whole thing and yes, this is the vibe. πŸŽ€


✨ NAME ✨

fscrypt_get_symlink β€” get the target of an encrypted symlink πŸ¦‹


🌸 SYNOPSIS 🌸

const char * fscrypt_get_symlink (struct inode *inode , const void
*caddr , unsigned int max_size , struct delayed_call *done );

like, that's the whole signature, no cap. four args, one const char * coming back at you ✨


πŸ’– ARGUMENTS πŸ’–

  • inode β€” the symlink inode, aka the main character here πŸ‘‘
  • caddr β€” the on-disk contents of the symlink. like, literally the raw bytes sitting on disk 🫢
  • max_size β€” size of the caddr buffer, so we know how much we're working with πŸ’…
  • done β€” if it works out, this gets set up to free the returned target if needed. very "we'll handle cleanup later" of it πŸ™ˆ

⭐ DESCRIPTION ⭐

so here's the tea: if the symlink's encryption key is available, we decrypt its target. slay. πŸ’œ

otherwise? we encode its target for presentation. still iconic, just a different path.

⚠️ heads up bestie β€” this may sleep, so the filesystem must have dropped out of RCU mode already. not me stressing the RCU part, it's fr fr important 😭

πŸ”₯ RETURN πŸ”₯

the presentable symlink target, or an ERR_PTR. that's it, that's the deal ✨


🌈 SEE ALSO 🌈

Kernel file ./fs/crypto/hooks.c β€” go read it, iykyk πŸ“–

all the fscrypt besties, linked up 🫢


and that's the page!! πŸŽ€ this one came from ./fs/crypto and it's dated October 2026 β€” so like, future vibes only. drink water, check your RCU mode, bye bestie πŸ’–βœ¨

πŸ“¦ where this page comes from