#include <linux/hash.h>
#include <linux/slab.h>
#include "common.h"
Go to the source code of this file.
tomoyo_commit_ok - Check memory quota.
: Data to copy from. : Size in byte.
Returns pointer to allocated memory on success, NULL otherwise. is zero-cleared on success.
Caller holds tomoyo_policy_lock mutex.
Definition at line 72 of file memory.c.
tomoyo_get_group - Allocate memory for "struct tomoyo_path_group"/"struct tomoyo_number_group".
- Parameters
-
| Pointer to "struct tomoyo_acl_param". : Index number. |
Returns pointer to "struct tomoyo_group" on success, NULL otherwise.
Definition at line 92 of file memory.c.
tomoyo_memory_ok - Check memory quota.
: Pointer to allocated memory.
Returns true on success, false otherwise.
Returns true if is not NULL and quota not exceeded, false otherwise.
Caller holds tomoyo_policy_lock mutex.
Definition at line 46 of file memory.c.
tomoyo_mm_init - Initialize mm related code.
Definition at line 190 of file memory.c.
tomoyo_warn_oom - Print out of memory warning message.
: Function's name.
Definition at line 16 of file memory.c.