ecryptfs_destroy_crypto(9)
π ecryptfs_destroy_crypto(9) π
okay so this is a page straight out of the Kernel API Manual β kernel-core energy, no cap β and it's all about ecryptfs_destroy_crypto, which frees every cached key_tfm sitting on key_tfm_list. that's the whole vibe. it's a cleanup function and it ate. π
β¨ SYNOPSIS β¨
int ecryptfs_destroy_crypto (void );
π¦ ARGUMENTS π¦
voidβ literally no arguments bestie. nothing. zero. it takes nothing and it needs nothing. π«Ά
πΈ DESCRIPTION πΈ
so here's the tea: ecryptfs_destroy_crypto frees all the cached key_tfms that are chillin' on key_tfm_list.
and when does it get called? only at module unload time. that's it. that's the entire moment. lowkey iconic that a function has one job and one job only β it's giving main character energy with zero subplots. β
ngl, "called only at module unload time" is a real constraint, not a suggestion β don't be calling this whenever you feel like it. π
π SEE ALSO π
the Kernel file ./fs/ecryptfs/crypto.c, plus this whole squad right here β every single one of them, no skips, no shuffle:
ecryptfs_from_hex(9)ecryptfs_derive_iv(9)ecryptfs_init_crypt_stat(9)ecryptfs_destroy_crypt_stat(9)virt_to_scatterlist(9)crypt_scatterlist(9)crypt_extent(9)ecryptfs_encrypt_page(9)ecryptfs_decrypt_page(9)ecryptfs_init_crypt_ctx(9)ecryptfs_copy_mount_wide_flags_to_inode_flags(9)ecryptfs_set_default_crypt_stat_vals(9)ecryptfs_new_file_context(9)ecryptfs_validate_marker(9)ecryptfs_process_flags(9)write_ecryptfs_marker(9)ecryptfs_code_for_cipher_string(9)ecryptfs_cipher_code_to_string(9)ecryptfs_write_headers_virt(9)ecryptfs_write_metadata(9)set_default_header_data(9)ecryptfs_read_headers_virt(9)ecryptfs_read_xattr_region(9)ecryptfs_process_key_cipher(9)ecryptfs_tfm_exists(9)ecryptfs_get_tfm_and_mutex_for_cipher_name(9)ecryptfs_encode_for_filename(9)ecryptfs_decode_from_filename(9)ecryptfs_encrypt_and_encode_filename(9)ecryptfs_decode_and_decrypt_filename(9)
and that's the whole page, bestie π§ β came to you from ./fs/ecryptfs, dated October 2026, and yes we're still out here freeing tfms. 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