fscrypt_set_context(9)
β¨ fscrypt_set_context(9) β¨
okay bestie, this little icon is from the Kernel API Manual and it's all about setting up the fscrypt context on a shiny new inode π
π NAME π
fscrypt_set_context β Set the fscrypt context of a new inode
π¦ SYNOPSIS π¦
int fscrypt_set_context (struct inode *inode , void *fs_data );
πΈ ARGUMENTS πΈ
inodeβ a new inode, periodt β¨fs_dataβ private data given by FS and passed to->set_context. that's the whole vibe π«Ά
π DESCRIPTION π
okay so listen: this should be called after fscrypt_prepare_new_inode, generally during a filesystem transaction. no cap.
Everything here must be GFP_NOFS-safe. like, literally everything β that part is not optional π
π₯ RETURN π₯
0β success, yay π-errnoβ failure, sad but valid π
π SEE ALSO π
Kernel file ./fs/crypto/policy.c β the whole friend group:
fscrypt_policies_equal(9)fscrypt_supported_policy(9)fscrypt_new_context(9)fscrypt_policy_from_context(9)fscrypt_has_permitted_context(9)fscrypt_context_for_new_inode(9)fscrypt_parse_test_dummy_encryption(9)fscrypt_dummy_policies_equal(9)fscrypt_show_test_dummy_encryption(9)
byeee π«Ά source/version: ./fs/crypto Β· date: October 2026 Β· page: fscrypt_set_context(9) β mwah π
π¦ 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