tomoyo_commit_ok(9)
π NAME π
tomoyo_commit_ok β check memory quota, bestie. This page is from the Kernel API Manual, and yes, it's giving very specific kernel vibes.
β¨ SYNOPSIS β¨
void * tomoyo_commit_ok (void *data , const unsigned int size );
π«Ά ARGUMENTS π«Ά
dataβ data to copy from. That's the source material, periodt.sizeβ size in byte. Yes, βbyte,β singular, that's what the page says.
π DESCRIPTION π
Okay so on success this returns a pointer to allocated memory. On failure? NULL, obviously. And when it succeeds, data is zero-cleared β like, literally zeroed out, iconic behavior.
β οΈ Big one: the caller holds tomoyo_policy_lock mutex. Do not forget this, bestie β it's giving βlock held, stay in your lane.β
π SEE ALSO π
Kernel file ./security/tomoyo/memory.c, plus tomoyo_warn_oom(9), tomoyo_memory_ok(9), tomoyo_get_group(9), tomoyo_get_name(9), and tomoyo_mm_init(9).
kisses and good vibes π
β source/version: ./security/tomoyo Β· date: October 2026 Β· page: tomoyo_commit_ok(9).
π¦ 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