Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_release_agent_write

Proto:static ssize_t cgroup_release_agent_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
550  BUILD_BUG_ON - break compile if a condition is true( size of The path to use for release notifications. < # chars in a path name including nul )
552  cgrp = group_kn_lock_live - locking helper for cgroup kernfs methods*@kn: the kernfs_node being serviced*@drain_offline: perform offline draining on the cgroup* This helper is to be used by a cgroup kernfs method currently servicing*@kn
553  If Not cgrp Then Return -ENODEV
555  spin_lock( & Protects cgroup_subsys->release_agent_path. Modifying it also requires* cgroup_mutex. Reading requires either cgroup_mutex or this spinlock.)
556  Copy a NUL terminated string into a sized buffer
558  spin_unlock( & Protects cgroup_subsys->release_agent_path. Modifying it also requires* cgroup_mutex. Reading requires either cgroup_mutex or this spinlock.)
559  group_kn_unlock - unlocking helper for cgroup kernfs methods*@kn: the kernfs_node being serviced* This helper undoes cgroup_kn_lock_live() and should be invoked before* the method finishes if locking succeeded
560  Return nbytes