函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\memory.c Create Date:2022-07-27 21:12:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_warn_oom - Print out of memory warning message.*@function: Function's name.

函数原型:void tomoyo_warn_oom(const char *function)

返回类型:void

参数:

类型参数名称
const char *function
21  pid等于pid
23  如果tomoyo_last_pid不等于pid
24  打印警告信息("ERROR: Out of memory at %s.\n", function)
25  tomoyo_last_pid等于pid
27  如果非External variable definitions. *********panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
调用者
名称描述
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