fscrypt_has_encryption_key(9)
π fscrypt_has_encryption_key(9) π
okay bestie, this page is from the Kernel API Manual, and it's lowkey a tiny vibe check for inodes. No cap, it's short but important.
πΈ NAME πΈ
fscrypt_has_encryption_key β check whether an inode has had its key set up.
β¨ SYNOPSIS β¨
bool fscrypt_has_encryption_key (const struct inode *inode );
π ARGUMENTS π
inodeβ the inode to check. That's the whole assignment, bestie: hand over the inode you're curious about.
π¦ RETURN π¦
Returns true if the inode has had its encryption key set up, else false. Like, key setup done = true era; no key setup = false. periodt.
π₯ DESCRIPTION π₯
Usually this should be preceded by fscrypt_get_encryption_info to try to set up the key first. So yeah β the manpage says usually call that first to try to set up the key. Do with that what you will, icon.
π SEE ALSO π
- Kernel file
./include/linux/fscrypt.h fscrypt_needs_contents_encryption(9)fscrypt_is_nokey_name(9)fscrypt_prepare_link(9)fscrypt_prepare_rename(9)fscrypt_prepare_lookup(9)fscrypt_prepare_readdir(9)fscrypt_prepare_setattr(9)fscrypt_encrypt_symlink(9)
mwah π β from the Kernel API Manual, source/version ./include/linux, dated October 2026. slay. π«Ά
π¦ 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