diff options
author | Serge E. Hallyn <serue@us.ibm.com> | 2008-04-29 04:00:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:10 -0400 |
commit | 29486df325e1fe6e1764afcb19e3370804c2b002 (patch) | |
tree | d69a96bb829940f3ae5171fde481edb20a9e468a /include/linux/cgroup.h | |
parent | 28fd5dfc12bde391981dfdcf20755952b6e916af (diff) |
cgroups: introduce cft->read_seq()
Introduce a read_seq() helper in cftype, which uses seq_file to print out
lists. Use it in the devices cgroup. Also split devices.allow into two
files, so now devices.deny and devices.allow are the ones to use to manipulate
the whitelist, while devices.list outputs the cgroup's current whitelist.
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Acked-by: Paul Menage <menage@google.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d58a958444ab..095248082b7e 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -226,6 +226,12 @@ struct cftype { | |||
226 | */ | 226 | */ |
227 | int (*read_map) (struct cgroup *cont, struct cftype *cft, | 227 | int (*read_map) (struct cgroup *cont, struct cftype *cft, |
228 | struct cgroup_map_cb *cb); | 228 | struct cgroup_map_cb *cb); |
229 | /* | ||
230 | * read_seq_string() is used for outputting a simple sequence | ||
231 | * using seqfile. | ||
232 | */ | ||
233 | int (*read_seq_string) (struct cgroup *cont, struct cftype *cft, | ||
234 | struct seq_file *m); | ||
229 | 235 | ||
230 | ssize_t (*write) (struct cgroup *cgrp, struct cftype *cft, | 236 | ssize_t (*write) (struct cgroup *cgrp, struct cftype *cft, |
231 | struct file *file, | 237 | struct file *file, |