tomoyo_memory_ok(9)
πΈ NAME πΈ
ok so listen β tomoyo_memory_ok is the vibe-check function for your memory quota π
it literally checks whether you're still within your allotment, no cap.
β¨ SYNOPSIS β¨
bool tomoyo_memory_ok (void *ptr );
π ARGUMENTS π
ptrβ a pointer to memory that's already been allocated, bestie. that's it, that's the whole input π«Ά
π¦ DESCRIPTION π¦
so here's the tea: this function returns true on success and false otherwise. periodt.
more specifically (because we love specifics), it returns true if ptr is not NULL and the quota has not been exceeded β and false otherwise. not me being obsessed with a two-condition check π but like, that's genuinely all it does, iykyk.
π important: the caller holds the tomoyo_policy_lock mutex. like, you are holding it, not this function. so don't come for me if you forgot to grab it first β that's on you, bestie. lock it before you call it, fr fr.
π SEE ALSO π
- the kernel file
./security/tomoyo/memory.cβ go read it, it's giving main character energy π tomoyo_warn_oom(9)β the one that yells when you run out of memory πtomoyo_commit_ok(9)β the commit check, slaytomoyo_get_group(9)β group acquisition, iconictomoyo_get_name(9)β name acquisition, also iconictomoyo_mm_init(9)β the memory subsystem init, the OG setup queen π§
and that's the whole page, bestie β nothing else hiding in there π
πΈ written under ./security/tomoyo in lovely October 2026, and yes the page itself is literally called tomoyo_memory_ok(9) β mwah, bye π
π¦ 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