befs_nls2utf(9)
π 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
- 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