tomoyo_find_domain_by_qid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tomoyo_find_domain_by_qid(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a lil function from the TOMOYO security corner of the kernel and it's shorter than my attention span, so let's go ✨


🌸 NAME 🌸

tomoyo_find_domain_by_qid β€” literally "get domain by query id" πŸŽ€ that's the whole vibe. you hand it a query id, it goes and finds you the domain. iconic behavior tbh.


✨ SYNOPSIS ✨

struct tomoyo_domain_info * tomoyo_find_domain_by_qid (unsigned int
serial );

yes the line break is real, she's just built like that πŸ’… note the return type is struct tomoyo_domain_info * and the one arg is an unsigned int named serial, no cap.


🫢 ARGUMENTS 🫢

  • serial β€” the Query ID, and it's assigned by tomoyo_supervisor. that's the whole thing. one (1) argument. she's low maintenance πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? she returns a pointer to "struct tomoyo_domain_info" if the thing is found, and NULL otherwise. that's it. that's the function. main character energy with a two-line job description ngl πŸ”₯

fr fr, remember: NULL means not found β€” so always vibe check the pointer before you dereference it, bestie πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

okay so this is the part where the manpage goes absolutely feral β€” the whole ./security/tomoyo/common.c friend group shows up. Kernel file ./security/tomoyo/common.c and like every sibling in the file:

like I said. the entire group chat. iykyk πŸ˜­πŸ‘‘


so yeah, that's the page πŸŽ€ sourced from ./security/tomoyo, dated October 2026, and this lil kernel API manual entry is a whole mood. go read your pointers, bestie, and slay πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from