fscrypt_fname_alloc_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 🌈

  • 0 on success 🫢
  • -errno on failure 😭

πŸ”₯ SEE ALSO πŸ”₯

The kernel file is ./fs/crypto/fname.c, and the related crew is:


source/version: ./fs/crypto Β· date: October 2026 Β· bye bestie, go allocate something iconic πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from