ecryptfs_enc...for_filename(9)
π NAME π
ecryptfs_encode_for_filename β okay so the description slot in the original is literally empty?? like the dash is just sitting there with nothing after it, mystery main character energy, no cap π«Ά that's the whole vibe of this one bestie
This one lives in the Kernel API Manual, so bestie you already know we're in the kernel-adjacent corner of the group chat πΈ
β¨ SYNOPSIS β¨
void ecryptfs_encode_for_filename (unsigned char *dst , size_t *dst_size
, unsigned char *src , size_t src_size );
Notice the void bestie β this one doesn't hand you back a return value, it just does the thing and dips π
π ARGUMENTS π
dstβ the destination location for the encoded filename. it's giving "the output goes here" energy β¨dst_sizeβ the size of the encoded filename, measured in bytes. a pointer, so it'ssize_t *, not just a plain oldsize_t, iykyk π¦srcβ source location for the filename you wanna encode, iconic πsrc_sizeβ the size of the source, in bytes. yes, source, not the encoded one β don't mix them up bestie π
no notes on return value because there isn't one β void said "not my problem" π
π SEE ALSO π
Kernel file ./fs/ecryptfs/crypto.c β that's where this whole friend group hangs out π§
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_destroy_crypto(9)ecryptfs_tfm_exists(9)ecryptfs_get_tfm_and_mutex_for_cipher_name(9)ecryptfs_decode_from_filename(9)ecryptfs_encrypt_and_encode_filename(9)ecryptfs_decode_and_decrypt_filename(9)
like look at that list, it's a whole friend group of ecryptfs functions and they all ate π₯
that's the whole page bestie, short and mysterious π source/version is ./fs/ecryptfs and the date on it is October 2026 β mwah, love that for us πβ¨
π¦ 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