fscrypt_fname_alloc_buffer(9)
π fscrypt_fname_alloc_buffer(9) π
okay so this little icon is straight out of the Kernel API Manual, and she is here to help you allocate a buffer for presented filenames. no cap, thatβs the whole vibe π
π NAME π
fscrypt_fname_alloc_buffer β allocate a buffer for presented filenames β¨
πΈ SYNOPSIS πΈ
int fscrypt_fname_alloc_buffer (u32 max_encrypted_len , struct
fscrypt_str *crypto_str );
π¦ ARGUMENTS π¦
max_encrypted_lenβ the maximum length of encrypted filenames that this buffer will be used to present πcrypto_strβ (output) the buffer to allocate, bestie π
β¨ DESCRIPTION β¨
So basically: allocate a buffer that is large enough to hold any decrypted or encoded filename β and yes, itβs null-terminated β for the given maximum encrypted filename length. thatβs it, thatβs the assignment π
π RETURN π
0on success π«Ά-errnoon failure π
π₯ SEE ALSO π₯
The kernel file is ./fs/crypto/fname.c, and the related crew is:
fscrypt_fname_encrypt(9)fname_decrypt(9)fscrypt_fname_encrypted_size(9)fscrypt_fname_free_buffer(9)fscrypt_fname_disk_to_usr(9)fscrypt_setup_filename(9)fscrypt_match_name(9)fscrypt_fname_siphash(9)
source/version: ./fs/crypto Β· date: October 2026 Β· bye bestie, go allocate something iconic π
ππ
π¦ 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