Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:13:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memory_oom_group_write

Proto:static ssize_t memory_oom_group_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)

Type:ssize_t

Parameter:

TypeParameterName
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  If Not buf Then Return -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  If ret Then Return ret
6092  If oom_group != 0 && oom_group != 1 Then Return -EINVAL
6095  * Should the OOM killer kill all belonging tasks, had it kill one? = oom_group
6097  Return nbytes