tomoyo_read_token(9)
π tomoyo_read_token β read a word from a line π
okay so bestie, welcome to tomoyo_read_token(9) from the Kernel API Manual β¨ this one's a lil cutie, let's get into it π
πΈ NAME πΈ
tomoyo_read_token β literally just reads a word from a line π«Ά no cap, that's the whole job.
π¦ SYNOPSIS π¦
char * tomoyo_read_token (struct tomoyo_acl_param *param );
yep that's the whole signature, she's compact and she knows it π
β¨ ARGUMENTS β¨
paramβ a pointer tostruct tomoyo_acl_param. that's it, that's the whole argument list, main character energy only π
π DESCRIPTION π
So here's the tea β on success she hands you back a word, and otherwise she gives you "". That's it. That's the deal.
And the reason she returns "" instead of NULL when there are no more words left to read? so the caller can skip the NULL check π like, she's doing you a solid, she's carrying the whole friendship here, you don't gotta do the defensive if (ptr == NULL) dance every single time. iconic behaviour, honestly π§
fr fr though β no more words means you get"", notNULL. don't @ me, that's just how she rolls π
π SEE ALSO π
Kernel file ./security/tomoyo/util.c bestie, plus the whole squad of siblings and cousins π«:
tomoyo_convert_time(9)tomoyo_permstr(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_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, go read them too, they ate π₯
and that's a wrap bestie! π this page lives in ./security/tomoyo, dated October 2026, and it answers to the name tomoyo_read_token(9) π love that for her, mwah π
π¦ 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