tomoyo_encode2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 of str in 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 the kfree part if it didn't return NULL. that's a whole memory-cleanup moment, and we are not skipping it. πŸ’€βœ¨

πŸ”₯ SEE ALSO πŸ”₯

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