函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memory_oom_group_write

函数原型:static ssize_t memory_oom_group_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)

返回类型:ssize_t

参数:

类型参数名称
struct kernfs_open_file *of
char *buf
size_tnbytes
loff_toff
6081  memcg等于mem_cgroup_from_css(of_css(of))
6084  buf等于strstrip(buf)
6085  如果非buf则返回:负EINVAL
6088  ret等于kstrtoint - convert a string to an int*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign.
6089  如果ret则返回:ret
6092  如果oom_group不等于0且oom_group不等于1则返回:负EINVAL
6095  * Should the OOM killer kill all belonging tasks, had it kill one?等于oom_group
6097  返回:nbytes