diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-04-29 04:00:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:09 -0400 |
commit | d447ea2f30ec60370ddb99a668e5ac12995f043d (patch) | |
tree | f5d53c03d32323f3e916237f8ec0e0b2572f93b0 /include | |
parent | 46ae220bea40bd1cf4abec2d5cdfb4f9396c7115 (diff) |
cgroups: add the trigger callback to struct cftype
Trigger callback can be used to receive a kick-up from the user space. The
string written is ignored.
The cftype->private is used for multiplexing events.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Paul Menage <menage@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 785a01cfb49d..2d1d151258cf 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -243,6 +243,14 @@ struct cftype { | |||
243 | */ | 243 | */ |
244 | int (*write_s64) (struct cgroup *cgrp, struct cftype *cft, s64 val); | 244 | int (*write_s64) (struct cgroup *cgrp, struct cftype *cft, s64 val); |
245 | 245 | ||
246 | /* | ||
247 | * trigger() callback can be used to get some kick from the | ||
248 | * userspace, when the actual string written is not important | ||
249 | * at all. The private field can be used to determine the | ||
250 | * kick type for multiplexing. | ||
251 | */ | ||
252 | int (*trigger)(struct cgroup *cgrp, unsigned int event); | ||
253 | |||
246 | int (*release) (struct inode *inode, struct file *file); | 254 | int (*release) (struct inode *inode, struct file *file); |
247 | }; | 255 | }; |
248 | 256 | ||