函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_force_empty_write

函数原型:static ssize_t mem_cgroup_force_empty_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
3180  memcg等于mem_cgroup_from_css(of_css(of))
3182  如果mem_cgroup_is_root(memcg)则返回:负EINVAL
3184  返回:如果Reclaims as many pages from the given memcg as possible.* Caller is responsible for holding css reference for memcg.否则nbytes