fscrypt_prepare_readdir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ fscrypt_prepare_readdir(9) ✨

okay so welcome to the Kernel API Manual entry for fscrypt_prepare_readdir(9), bestie πŸ’– this one is short and iconic.


πŸŽ€ NAME πŸŽ€

fscrypt_prepare_readdir β€” prepare to read a possibly-encrypted directory πŸ¦‹

🌸 SYNOPSIS 🌸

int fscrypt_prepare_readdir (struct inode *dir );

πŸ’– ARGUMENTS πŸ’–

  • dir β€” the directory inode πŸ‘‘ that's the directory we're prepping, periodt.

🧚 DESCRIPTION 🧚

If the directory is encrypted and it doesn't already have its encryption key set up, try to set it up so that the filenames will be listed in plaintext form rather than in no-key form. ✨

⭐ RETURN ⭐

0 on success; -errno on error. 😭

Note that the encryption key being unavailable is not considered an error. It is also not an error if the encryption policy is unsupported by this kernel; that is treated like the key being unavailable, so that files can still be deleted. πŸ’…

πŸ“ SEE ALSO πŸ“


later bestie 🫢 this page came from ./include/linux, is dated October 2026, and it's fscrypt_prepare_readdir(9) signing off πŸ’…πŸŽ€

πŸ“¦ where this page comes from