Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:freezer_write

Proto:static ssize_t freezer_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
424  buf = strstrip(buf)
426  If strcmp(buf, freezer_state_strs(0)) == 0 Then freeze = false
428  Else if strcmp(buf, freezer_state_strs(his and its descendants frozen )) == 0 Then freeze = true
430  Else Return -EINVAL
433  zer_change_state - change the freezing state of a cgroup_freezer*@freezer: freezer of interest*@freeze: whether to freeze or thaw* Freeze or thaw @freezer according to @freeze. The operations are* recursive - all descendants of @freezer will be affected.
434  Return nbytes