tomoyo_normalize_line(9)
πΈ tomoyo_normalize_line β format string, bestie β¨
okay so real quick, this is tomoyo_normalize_line(9) from the Kernel API Manual β yes, that manual, the kernel one. It lives in ./security/tomoyo/util.c and honestly it's giving "quiet little helper that does one job perfectly." π
π SYNOPSIS
void tomoyo_normalize_line (unsigned char *buffer );
literally one argument, no drama, no hidden options. we love a low-maintenance function. π«Ά
β¨ ARGUMENTS
bufferβ the line you want normalized. that's it. that's the whole vibe. you hand it the line, it tidies the line. π
π DESCRIPTION
okay so here's the tea β β tomoyo_normalize_line takes your line and:
- strips off the leading whitespace π
- strips off the trailing whitespace π
- and then squishes any multiple whitespaces down into a single space β¨
it's giving "clean girl aesthetic" but for strings. no cap, that's the whole thing.
and the return value? Returns nothing. π«₯ she's a void, she gives nothing back, she just does the work and leaves. main character energy fr fr. π
ngl it's a tiny function, but every line that goes through TOMOYO deserves a glow-up first. π§
π SEE ALSO
bestie, the whole friend group is here β go say hi to all of them π
tomoyo_convert_time(9)tomoyo_permstr(9)tomoyo_read_token(9)tomoyo_get_domainname(9)tomoyo_parse_ulong(9)tomoyo_print_ulong(9)tomoyo_parse_name_union(9)tomoyo_parse_number_union(9)tomoyo_byte_range(9)tomoyo_alphabet_char(9)tomoyo_make_byte(9)tomoyo_valid(9)tomoyo_invalid(9)tomoyo_str_starts(9)tomoyo_correct_word2(9)tomoyo_correct_word(9)tomoyo_correct_path2(9)tomoyo_correct_path(9)tomoyo_correct_domain(9)tomoyo_domain_def(9)tomoyo_find_domain(9)tomoyo_const_part_length(9)tomoyo_fill_path_info(9)tomoyo_file_matches_pattern2(9)tomoyo_file_matches_pattern(9)tomoyo_path_matches_pattern2(9)tomoyo_path_matches_pattern(9)tomoyo_get_exe(9)tomoyo_get_mode(9)tomoyo_init_request_info(9)tomoyo_domain_quota_is_ok(9)
also the source, in case you wanna read the actual code (iconic behaviour honestly):
Kernel file ./security/tomoyo/util.c
mwah π that's the page. sourced straight from ./security/tomoyo, dated October 2026, and yes she's still out here normalizing lines in tomoyo_normalize_line(9). slay. πβ¨
π¦ 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