函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pids_max_write

函数原型:static ssize_t pids_max_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
258  css等于of_css(of)
259  pids等于css_pids(css)
263  buf等于strstrip(buf)
264  如果非字符串比较
265  limit等于PIDS_MAX
266  转到:set_limit
269  err等于kstrtoll - convert a string to a long long*@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.
270  如果err则返回:err
273  如果limit小于0或limit大于等于PIDS_MAX则返回:负EINVAL
276  set_limit :
281  atomic64_set( & limit, limit)
282  返回:nbytes