tomoyo_commit_ok(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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