| /linux/kernel/cgroup/ |
| H A D | cgroup.c | 688 struct cftype *cft = of_cft(of); in of_css() local 698 if (CGROUP_HAS_SUBSYS_CONFIG && cft->ss) in of_css() 699 return rcu_dereference_raw(cgrp->subsys[cft->ss->id]); in of_css() 1583 static char *cgroup_file_name(struct cgroup *cgrp, const struct cftype *cft, in cgroup_file_name() argument 1586 struct cgroup_subsys *ss = cft->ss; in cgroup_file_name() 1588 if (cft->ss && !(cft->flags & CFTYPE_NO_PREFIX) && in cgroup_file_name() 1590 const char *dbg = (cft->flags & CFTYPE_DEBUG) ? ".__DEBUG__." : ""; in cgroup_file_name() 1594 cft->name); in cgroup_file_name() 1596 strscpy(buf, cft->name, CGROUP_FILE_NAME_MAX); in cgroup_file_name() 1607 static umode_t cgroup_file_mode(const struct cftype *cft) in cgroup_file_mode() argument [all …]
|
| H A D | cpuset-v1.c | 165 static int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_s64() argument 169 cpuset_filetype_t type = cft->private; in cpuset_write_s64() 178 pr_info_once("cpuset.%s is deprecated\n", cft->name); in cpuset_write_s64() 190 static s64 cpuset_read_s64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_s64() argument 193 cpuset_filetype_t type = cft->private; in cpuset_read_s64() 449 static u64 cpuset_read_u64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_u64() argument 452 cpuset_filetype_t type = cft->private; in cpuset_read_u64() 481 static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_u64() argument 485 cpuset_filetype_t type = cft->private; in cpuset_write_u64() 499 pr_info_once("cpuset.%s is deprecated\n", cft->name); in cpuset_write_u64() [all …]
|
| H A D | debug.c | 35 struct cftype *cft) in debug_taskcount_read() argument 75 struct cftype *cft) in current_css_set_refcount_read() argument 267 static u64 releasable_read(struct cgroup_subsys_state *css, struct cftype *cft) in releasable_read() argument
|
| H A D | legacy_freezer.c | 431 struct cftype *cft) in freezer_self_freezing_read() argument 439 struct cftype *cft) in freezer_parent_freezing_read() argument
|
| H A D | pids.c | 346 struct cftype *cft) in pids_current_read() argument 354 struct cftype *cft) in pids_peak_read() argument
|
| H A D | cgroup-v1.c | 600 struct cftype *cft) in cgroup_read_notify_on_release() argument 606 struct cftype *cft, u64 val) in cgroup_write_notify_on_release() argument 616 struct cftype *cft) in cgroup_clone_children_read() argument 622 struct cftype *cft, u64 val) in cgroup_clone_children_write() argument
|
| /linux/mm/ |
| H A D | hugetlb_cgroup.c | 459 struct cftype *cft = seq_cft(seq); in hugetlb_cgroup_read_numa_stat() local 460 int idx = MEMFILE_IDX(cft->private); in hugetlb_cgroup_read_numa_stat() 510 struct cftype *cft) in hugetlb_cgroup_read_u64() argument 516 counter = &h_cg->hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64() 517 rsvd_counter = &h_cg->rsvd_hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64() 519 switch (MEMFILE_ATTR(cft->private)) { in hugetlb_cgroup_read_u64() 545 struct cftype *cft = seq_cft(seq); in hugetlb_cgroup_read_u64_max() local 550 idx = MEMFILE_IDX(cft->private); in hugetlb_cgroup_read_u64_max() 556 switch (MEMFILE_ATTR(cft->private)) { in hugetlb_cgroup_read_u64_max() 678 struct cftype *cft = seq_cft(seq); in __hugetlb_events_show() local [all …]
|
| H A D | memcontrol-v1.c | 405 struct cftype *cft) in mem_cgroup_move_charge_read() argument 412 struct cftype *cft, u64 val) in mem_cgroup_move_charge_write() argument 424 struct cftype *cft, u64 val) in mem_cgroup_move_charge_write() argument 1554 struct cftype *cft) in mem_cgroup_hierarchy_read() argument 1560 struct cftype *cft, u64 val) in mem_cgroup_hierarchy_write() argument 1573 struct cftype *cft) in mem_cgroup_read_u64() argument 1578 switch (MEMFILE_TYPE(cft->private)) { in mem_cgroup_read_u64() 1595 switch (MEMFILE_ATTR(cft->private)) { in mem_cgroup_read_u64() 1965 struct cftype *cft) in mem_cgroup_swappiness_read() argument 1973 struct cftype *cft, u64 val) in mem_cgroup_swappiness_write() argument [all …]
|
| H A D | memcontrol.c | 4246 struct cftype *cft) in memory_current_read() argument 5327 struct cftype *cft) in swap_current_read() argument 5556 struct cftype *cft) in zswap_current_read() argument
|
| /linux/include/linux/ |
| H A D | cgroup-defs.h | 723 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft); 727 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft); 742 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft, 747 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
|
| /linux/kernel/sched/ |
| H A D | cpuacct.c | 177 struct cftype *cft) in cpuusage_user_read() argument 183 struct cftype *cft) in cpuusage_sys_read() argument 188 static u64 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) in cpuusage_read() argument 193 static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, in cpuusage_write() argument
|
| H A D | core.c | 9489 struct cftype *cft) in cpu_shares_read_u64() argument 9763 struct cftype *cft) in cpu_period_read_u64() argument 9822 struct cftype *cft) in cpu_quota_read_s64() argument 9831 struct cftype *cft) in cpu_burst_read_u64() argument 9875 struct cftype *cft, s64 val) in cpu_rt_runtime_write() argument 9881 struct cftype *cft) in cpu_rt_runtime_read() argument 9893 struct cftype *cft) in cpu_rt_period_read_uint() argument 9901 struct cftype *cft) in cpu_idle_read_s64() argument 9907 struct cftype *cft, s64 idle) in cpu_idle_write_s64() argument 10071 struct cftype *cft) in cpu_weight_read_u64() argument [all …]
|
| /linux/net/core/ |
| H A D | netclassid_cgroup.c | 117 static u64 read_classid(struct cgroup_subsys_state *css, struct cftype *cft) in read_classid() argument 122 static int write_classid(struct cgroup_subsys_state *css, struct cftype *cft, in write_classid() argument
|
| H A D | netprio_cgroup.c | 178 static u64 read_prioidx(struct cgroup_subsys_state *css, struct cftype *cft) in read_prioidx() argument
|