cgroup: unify pidlist and other file handling
[linux-2.6-block.git] / include / linux / cgroup.h
index b32a0f8ae9ad1eb0aac6853465680e7f03853bb0..8b9a594f0c929ada4b79c911da06b0f106ba2f0e 100644 (file)
@@ -434,7 +434,6 @@ struct cftype {
         */
        struct cgroup_subsys *ss;
 
-       int (*open)(struct inode *inode, struct file *file);
        /*
         * read_u64() is a shortcut for the common case of returning a
         * single integer. Use it in place of read()
@@ -448,6 +447,11 @@ struct cftype {
        /* generic seq_file read interface */
        int (*seq_show)(struct seq_file *sf, void *v);
 
+       /* optional ops, implement all or none */
+       void *(*seq_start)(struct seq_file *sf, loff_t *ppos);
+       void *(*seq_next)(struct seq_file *sf, void *v, loff_t *ppos);
+       void (*seq_stop)(struct seq_file *sf, void *v);
+
        /*
         * write_u64() is a shortcut for the common case of accepting
         * a single integer (as parsed by simple_strtoull) from