• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/

Lines Matching defs:cft

171 	struct cftype *cft;
1854 static int cgroup_tasks_write(struct cgroup *cgrp, struct cftype *cft, u64 pid)
1882 static int cgroup_release_agent_write(struct cgroup *cgrp, struct cftype *cft,
1893 static int cgroup_release_agent_show(struct cgroup *cgrp, struct cftype *cft,
1907 static ssize_t cgroup_write_X64(struct cgroup *cgrp, struct cftype *cft,
1924 if (cft->write_u64) {
1928 retval = cft->write_u64(cgrp, cft, val);
1933 retval = cft->write_s64(cgrp, cft, val);
1940 static ssize_t cgroup_write_string(struct cgroup *cgrp, struct cftype *cft,
1947 size_t max_bytes = cft->max_write_len;
1966 retval = cft->write_string(cgrp, cft, strstrip(buffer));
1978 struct cftype *cft = __d_cft(file->f_dentry);
1983 if (cft->write)
1984 return cft->write(cgrp, cft, file, buf, nbytes, ppos);
1985 if (cft->write_u64 || cft->write_s64)
1986 return cgroup_write_X64(cgrp, cft, file, buf, nbytes, ppos);
1987 if (cft->write_string)
1988 return cgroup_write_string(cgrp, cft, file, buf, nbytes, ppos);
1989 if (cft->trigger) {
1990 int ret = cft->trigger(cgrp, (unsigned int)cft->private);
1996 static ssize_t cgroup_read_u64(struct cgroup *cgrp, struct cftype *cft,
2002 u64 val = cft->read_u64(cgrp, cft);
2008 static ssize_t cgroup_read_s64(struct cgroup *cgrp, struct cftype *cft,
2014 s64 val = cft->read_s64(cgrp, cft);
2023 struct cftype *cft = __d_cft(file->f_dentry);
2029 if (cft->read)
2030 return cft->read(cgrp, cft, file, buf, nbytes, ppos);
2031 if (cft->read_u64)
2032 return cgroup_read_u64(cgrp, cft, file, buf, nbytes, ppos);
2033 if (cft->read_s64)
2034 return cgroup_read_s64(cgrp, cft, file, buf, nbytes, ppos);
2044 struct cftype *cft;
2057 struct cftype *cft = state->cft;
2058 if (cft->read_map) {
2063 return cft->read_map(state->cgroup, cft, &cb);
2065 return cft->read_seq_string(state->cgroup, cft, m);
2085 struct cftype *cft;
2090 cft = __d_cft(file->f_dentry);
2092 if (cft->read_map || cft->read_seq_string) {
2097 state->cft = cft;
2103 } else if (cft->open)
2104 err = cft->open(inode, file);
2113 struct cftype *cft = __d_cft(file->f_dentry);
2114 if (cft->release)
2115 return cft->release(inode, file);
2225 * @cft: the control file in question
2227 * returns cft->mode if ->mode is not 0
2232 static mode_t cgroup_file_mode(const struct cftype *cft)
2236 if (cft->mode)
2237 return cft->mode;
2239 if (cft->read || cft->read_u64 || cft->read_s64 ||
2240 cft->read_map || cft->read_seq_string)
2243 if (cft->write || cft->write_u64 || cft->write_s64 ||
2244 cft->write_string || cft->trigger)
2252 const struct cftype *cft)
2264 strcat(name, cft->name);
2268 mode = cgroup_file_mode(cft);
2272 dentry->d_fsdata = (void *)cft;
2282 const struct cftype cft[],
2287 err = cgroup_add_file(cgrp, subsys, &cft[i]);
2995 struct cftype *cft)
3001 struct cftype *cft,
3023 event->cft->unregister_event(cgrp, event->cft, event->eventfd);
3074 static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft,
3126 event->cft = __file_cft(cfile);
3127 if (IS_ERR(event->cft)) {
3128 ret = PTR_ERR(event->cft);
3132 if (!event->cft->register_event || !event->cft->unregister_event) {
3137 ret = event->cft->register_event(cgrp, event->cft,
3143 event->cft->unregister_event(cgrp, event->cft, event->eventfd);
4743 static u64 cgroup_refcount_read(struct cgroup *cont, struct cftype *cft)
4748 static u64 debug_taskcount_read(struct cgroup *cont, struct cftype *cft)
4753 static u64 current_css_set_read(struct cgroup *cont, struct cftype *cft)
4759 struct cftype *cft)
4770 struct cftype *cft,
4797 struct cftype *cft,
4822 static u64 releasable_read(struct cgroup *cgrp, struct cftype *cft)