fname_decrypt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to fname_decrypt(9) from the Kernel API Manual πŸ’… this one is lowkey iconic: it's the kernel function that decrypts a filename, and we're gonna walk through it together, no cap ✨

πŸŽ€ NAME πŸŽ€

fname_decrypt β€” decrypt a filename πŸ”“πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

int fname_decrypt (const struct inode *inode , const struct fscrypt_str
*iname , struct fscrypt_str *oname );

🌸 ARGUMENTS 🌸

  • inode β€” the inode of the parent directory (for regular filenames) or the inode of the symlink (for symlink targets) 🫢
  • iname β€” the encrypted filename to decrypt πŸ”
  • oname β€” (output) the decrypted filename. The caller must have allocated enough space for this, e.g. using fscrypt_fname_alloc_buffer. fr fr, allocate that space first or it's giving chaos 😭

⭐ RETURN ⭐

0 on success, -errno on failure. slay when it's 0, cry when it's -errno πŸ’€

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./fs/crypto/fname.c β€” go peek, iykyk πŸ‘€


that's the whole vibe check, bestie πŸ’… this page came from the ./fs/crypto source/version, dated October 2026 β€” mwah, periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from