Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\pids.c Create Date:2022-07-28 11:14:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pids_max_write

Proto:static ssize_t pids_max_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
258  css = of_css(of)
259  pids = css_pids(css)
263  buf = strstrip(buf)
264  If Not strcmp(buf, PIDS_MAX_STR) Then
265  limit = PIDS_MAX
266  Go to 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  If err Then Return err
273  If limit < 0 || limit >= PIDS_MAX Then Return -EINVAL
276  set_limit :
281  atomic64_set( & limit, limit)
282  Return nbytes