Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\memory.c Create Date:2022-07-28 19:43:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_warn_oom - Print out of memory warning message.*@function: Function's name.

Proto:void tomoyo_warn_oom(const char *function)

Type:void

Parameter:

TypeParameterName
const char *function
21  pid = pid
23  If tomoyo_last_pid != pid Then
24  pr_warn("ERROR: Out of memory at %s.\n", function)
25  tomoyo_last_pid = pid
27  If Not External variable definitions. ********* Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
Caller
NameDescribe
tomoyo_memory_okmoyo_memory_ok - Check memory quota.*@ptr: Pointer to allocated memory.* Returns true on success, false otherwise.* Returns true if @ptr is not NULL and quota not exceeded, false otherwise.* Caller holds tomoyo_policy_lock mutex.
tomoyo_realpath_from_pathmoyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root