fname_decrypt(9)
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. usingfscrypt_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 π
fscrypt_fname_encrypt(9)fscrypt_fname_encrypted_size(9)fscrypt_fname_alloc_buffer(9)fscrypt_fname_free_buffer(9)fscrypt_fname_disk_to_usr(9)fscrypt_setup_filename(9)fscrypt_match_name(9)fscrypt_fname_siphash(9)
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
- 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