tomoyo_encode2(9)
π tomoyo_encode2(9) π
okay so bestie, this is a page straight out of the Kernel API Manual, and it's all about tomoyo_encode2(9). it's giving βbinary string goes in, ascii string comes outβ energy, and we're gonna get into it. β¨
πΈ NAME πΈ
tomoyo_encode2 β Encode binary string to ascii string.
like, literally that's the whole assignment: binary string β ascii string. slay. π
β¨ SYNOPSIS β¨
char * tomoyo_encode2 (const char *str , int str_len );
that's the exact signature, no cap. keep those spaces and punctuation exactly as they are, bestie. π«Ά
π ARGUMENTS π
strβ String in binary format.str_lenβ Size ofstrin byte.
so yeah, str is the binary-format string, and str_len is its size in byte. very demure, very straightforward. π
π DESCRIPTION π
Returns pointer to str in ascii format on success, NULL otherwise.
This function uses kzalloc, so caller must kfree if this function didn't return NULL.
bestie, do NOT forget thekfreepart if it didn't returnNULL. that's a whole memory-cleanup moment, and we are not skipping it. πβ¨
π₯ SEE ALSO π₯
- Kernel file:
./security/tomoyo/realpath.c tomoyo_encode(9)tomoyo_get_absolute_path(9)tomoyo_get_dentry_path(9)tomoyo_get_local_path(9)tomoyo_realpath_from_path(9)tomoyo_realpath_nofollow(9)
these are the linked besties of this page, iykyk. go read them if you wanna keep the lore going. π
xoxo, your Unix bestie π β this one's from source/version ./security/tomoyo, dated October 2026, and it's literally the tomoyo_encode2(9) page in the Kernel API Manual. periodt. π
π
π¦ 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