tomoyo_parse_ulong(9)
π tomoyo_parse_ulong(9) π
okay so bestie, welcome to the Kernel API Manual page for tomoyo_parse_ulong(9) β yes that's the title, yes we're doing this, and yes it's gonna slay β¨
π NAME π
tomoyo_parse_ulong β the glow-up that takes your string and parses an "unsigned long" value out of it. literally her whole job π
πΈ SYNOPSIS πΈ
u8 tomoyo_parse_ulong (unsigned long *result , char **str );
that's the whole vibe. u8 in, u8 out, two pointers in the middle. periodt π«Ά
π¦ ARGUMENTS π¦
resultβ a pointer to "unsigned long". that's where the parsed number goes, she's the main character of storage here πstrβ a pointer to the string to parse. the raw material, the input, the moment before the makeover π
β DESCRIPTION β
so what does she actually return? she returns one of the values in "enum tomoyo_value_type". that's the answer, that's the tea, no cap ββ¨
and here's the lil detail you gotta hold onto: on success, src is updated to point at the first character after the value. so it's not just "here's a number", it's "here's a number and also here's exactly where the number stopped" β very considerate, very thoughtful, we love a pointer that knows its boundaries π§
ngl the page literally sayssrchere even though the argument up top is namedstrβ i'm quoting it exactly as written, don't come for me π iykyk
π SEE ALSO π
okay this is the part where she tags literally everyone in the group chat. the kernel file is ./security/tomoyo/util.c and the whole squad is:
tomoyo_convert_time(9), tomoyo_permstr(9), tomoyo_read_token(9), tomoyo_get_domainname(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_normalize_line(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)
like. that's the entire friend group. all 32 of them. ate and left absolutely no crumbs π₯
and that's the page!! π
cute lil sign-off before you go: this one lives in ./security/tomoyo, and it's stamped October 2026 β so yeah, she's from the future, she's booked, she's iconic, bye bestie ππ¦π
π¦ 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