| /linux-6.15/kernel/cgroup/ |
| H A D | cgroup-internal.h | 146 struct cgroup_taskset tset; member 152 #define CGROUP_TASKSET_INIT(tset) \ argument 154 .src_csets = LIST_HEAD_INIT(tset.src_csets), \ 155 .dst_csets = LIST_HEAD_INIT(tset.dst_csets), \ 156 .csets = &tset.src_csets, \ 163 CGROUP_TASKSET_INIT(name.tset), \
|
| H A D | pids.c | 200 static int pids_can_attach(struct cgroup_taskset *tset) in pids_can_attach() argument 205 cgroup_taskset_for_each(task, dst_css, tset) { in pids_can_attach() 225 static void pids_cancel_attach(struct cgroup_taskset *tset) in pids_cancel_attach() argument 230 cgroup_taskset_for_each(task, dst_css, tset) { in pids_cancel_attach()
|
| H A D | cgroup.c | 2543 tset->cur_cset = list_first_entry(tset->csets, struct css_set, mg_node); in cgroup_taskset_first() 2606 struct cgroup_taskset *tset = &mgctx->tset; in cgroup_migrate_execute() local 2613 if (tset->nr_tasks) { in cgroup_migrate_execute() 2616 tset->ssid = ssid; in cgroup_migrate_execute() 2658 tset->csets = &tset->dst_csets; in cgroup_migrate_execute() 2660 if (tset->nr_tasks) { in cgroup_migrate_execute() 2663 tset->ssid = ssid; in cgroup_migrate_execute() 2664 ss->attach(tset); in cgroup_migrate_execute() 2685 list_splice_init(&tset->dst_csets, &tset->src_csets); in cgroup_migrate_execute() 2697 tset->nr_tasks = 0; in cgroup_migrate_execute() [all …]
|
| H A D | legacy_freezer.c | 168 static void freezer_attach(struct cgroup_taskset *tset) in freezer_attach() argument 185 cgroup_taskset_for_each(task, new_css, tset) { in freezer_attach()
|
| H A D | cpuset.c | 2978 static int cpuset_can_attach(struct cgroup_taskset *tset) in cpuset_can_attach() argument 2987 cpuset_attach_old_cs = task_cs(cgroup_taskset_first(tset, &css)); in cpuset_can_attach() 3001 cgroup_taskset_for_each(task, css, tset) { in cpuset_can_attach() 3053 static void cpuset_cancel_attach(struct cgroup_taskset *tset) in cpuset_cancel_attach() argument 3058 cgroup_taskset_first(tset, &css); in cpuset_cancel_attach() 3101 static void cpuset_attach(struct cgroup_taskset *tset) in cpuset_attach() argument 3110 cgroup_taskset_first(tset, &css); in cpuset_attach() 3132 cgroup_taskset_for_each(task, css, tset) in cpuset_attach() 3145 cgroup_taskset_for_each_leader(leader, css, tset) { in cpuset_attach()
|
| /linux-6.15/kernel/sched/ |
| H A D | ext.h | 85 int scx_cgroup_can_attach(struct cgroup_taskset *tset); 88 void scx_cgroup_cancel_attach(struct cgroup_taskset *tset); 94 static inline int scx_cgroup_can_attach(struct cgroup_taskset *tset) { return 0; } in scx_cgroup_can_attach() argument 97 static inline void scx_cgroup_cancel_attach(struct cgroup_taskset *tset) {} in scx_cgroup_cancel_attach() argument
|
| H A D | core.c | 9201 static int cpu_cgroup_can_attach(struct cgroup_taskset *tset) in cpu_cgroup_can_attach() argument 9207 cgroup_taskset_for_each(task, css, tset) { in cpu_cgroup_can_attach() 9212 return scx_cgroup_can_attach(tset); in cpu_cgroup_can_attach() 9215 static void cpu_cgroup_attach(struct cgroup_taskset *tset) in cpu_cgroup_attach() argument 9220 cgroup_taskset_for_each(task, css, tset) in cpu_cgroup_attach() 9226 static void cpu_cgroup_cancel_attach(struct cgroup_taskset *tset) in cpu_cgroup_cancel_attach() argument 9228 scx_cgroup_cancel_attach(tset); in cpu_cgroup_cancel_attach()
|
| H A D | ext.c | 3980 int scx_cgroup_can_attach(struct cgroup_taskset *tset) in scx_cgroup_can_attach() argument 3992 cgroup_taskset_for_each(p, css, tset) { in scx_cgroup_can_attach() 4019 cgroup_taskset_for_each(p, css, tset) { in scx_cgroup_can_attach() 4050 void scx_cgroup_cancel_attach(struct cgroup_taskset *tset) in scx_cgroup_cancel_attach() argument 4058 cgroup_taskset_for_each(p, css, tset) { in scx_cgroup_cancel_attach()
|
| /linux-6.15/include/linux/ |
| H A D | cgroup.h | 153 struct task_struct *cgroup_taskset_first(struct cgroup_taskset *tset, 155 struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset, 286 #define cgroup_taskset_for_each(task, dst_css, tset) \ argument 287 for ((task) = cgroup_taskset_first((tset), &(dst_css)); \ 289 (task) = cgroup_taskset_next((tset), &(dst_css))) 300 #define cgroup_taskset_for_each_leader(leader, dst_css, tset) \ argument 301 for ((leader) = cgroup_taskset_first((tset), &(dst_css)); \ 303 (leader) = cgroup_taskset_next((tset), &(dst_css))) \
|
| H A D | cgroup-defs.h | 720 int (*can_attach)(struct cgroup_taskset *tset); 721 void (*cancel_attach)(struct cgroup_taskset *tset); 722 void (*attach)(struct cgroup_taskset *tset);
|
| /linux-6.15/drivers/mtd/nand/raw/ |
| H A D | fsmc_nand.c | 111 u8 tset; member 266 u32 tclr, tar, thiz, thold, twait, tset; in fsmc_nand_setup() local 273 tset = (tims->tset & FSMC_TSET_MASK) << FSMC_TSET_SHIFT; in fsmc_nand_setup() 289 u32 thiz, thold, twait, tset, twait_min; in fsmc_calc_timings() local 321 tset = max(sdrt->tCS_min - sdrt->tWP_min, in fsmc_calc_timings() 323 tims->tset = DIV_ROUND_UP(tset / 1000, hclkn) - 1; in fsmc_calc_timings() 324 if (tims->tset == 0) in fsmc_calc_timings() 325 tims->tset = 1; in fsmc_calc_timings() 326 else if (tims->tset > FSMC_TSET_MASK) in fsmc_calc_timings() 327 tims->tset = FSMC_TSET_MASK; in fsmc_calc_timings() [all …]
|
| /linux-6.15/net/core/ |
| H A D | netclassid_cgroup.c | 105 static void cgrp_attach(struct cgroup_taskset *tset) in cgrp_attach() argument 110 cgroup_taskset_for_each(p, css, tset) { in cgrp_attach()
|
| H A D | netprio_cgroup.c | 229 static void net_prio_attach(struct cgroup_taskset *tset) in net_prio_attach() argument 234 cgroup_taskset_for_each(p, css, tset) { in net_prio_attach()
|
| /linux-6.15/Documentation/admin-guide/cgroup-v1/ |
| H A D | cgroups.rst | 594 ``int can_attach(struct cgroup *cgrp, struct cgroup_taskset *tset)`` 599 @tset contains the tasks to be attached and is guaranteed to have at 604 - @tset contains all tasks from the thread group whether or not 608 Each @tset entry also contains the task's old cgroup and tasks which 629 ``void cancel_attach(struct cgroup *cgrp, struct cgroup_taskset *tset)`` 638 ``void attach(struct cgroup *cgrp, struct cgroup_taskset *tset)``
|
| /linux-6.15/mm/ |
| H A D | memcontrol.c | 3988 static void mem_cgroup_lru_gen_attach(struct cgroup_taskset *tset) in mem_cgroup_lru_gen_attach() argument 3994 cgroup_taskset_for_each_leader(task, css, tset) in mem_cgroup_lru_gen_attach() 4006 static void mem_cgroup_lru_gen_attach(struct cgroup_taskset *tset) {} in mem_cgroup_lru_gen_attach() argument 4009 static void mem_cgroup_kmem_attach(struct cgroup_taskset *tset) in mem_cgroup_kmem_attach() argument 4014 cgroup_taskset_for_each(task, css, tset) { in mem_cgroup_kmem_attach() 4020 static void mem_cgroup_attach(struct cgroup_taskset *tset) in mem_cgroup_attach() argument 4022 mem_cgroup_lru_gen_attach(tset); in mem_cgroup_attach() 4023 mem_cgroup_kmem_attach(tset); in mem_cgroup_attach()
|
| /linux-6.15/kernel/events/ |
| H A D | core.c | 14594 static void perf_cgroup_attach(struct cgroup_taskset *tset) in perf_cgroup_attach() argument 14599 cgroup_taskset_for_each(task, css, tset) in perf_cgroup_attach()
|