tomoyo_parse_ulong(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 says src here even though the argument up top is named str β€” 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