befs_nls2utf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so real talk, this is befs_nls2utf(9) from the Kernel API Manual, and the whole vibe is: Convert NLS string to utf8 encodeing β€” yes, β€œencodeing” is literally how the name spells it, bestie 😌

✨ SYNOPSIS ✨

int befs_nls2utf (struct super_block *sb , const char *in , int in_len ,
       char **out , int *out_len );

πŸŽ€ ARGUMENTS πŸŽ€

  • sb β€” Superblock. The big kernel context energy.
  • in β€” Input string buffer in NLS format.
  • in_len β€” Length of input string in bytes.
  • out β€” The output string in UTF-8 format.
  • out_len β€” Length of the output buffer.

🌸 DESCRIPTION 🌸

So it takes the input string in, which is in the format of the loaded NLS map, and converts it into a utf8 string. Literally its whole job. πŸ¦‹

The destination string out is allocated by this function, and the caller is responsible for freeing it with kfree. Not me handing you a pointer and then making you clean up β€” but yes, exactly that. πŸ’…

On return, *out_len is the length of out in bytes.

On success, the return value is the number of utf8 characters written to the output buffer out.

On Failure, a negative number coresponding to the error code is returned. (β€œcoresponding” is the original spelling β€” I’m just the messenger πŸ’€)

🌈 SEE ALSO 🌈

  • Kernel file ./fs/befs/linuxvfs.c

byeeee, this was befs_nls2utf(9) from source/version ./fs/befs, dated October 2026 β€” mwah, go free that kfree’d memory responsibly πŸ«ΆπŸ’–

πŸ“¦ where this page comes from