1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_SCHED_AUTOGROUP_H 3 #define _LINUX_SCHED_AUTOGROUP_H 4 5 struct signal_struct; 6 struct task_struct; 7 struct task_group; 8 struct seq_file; 9 10 #ifdef CONFIG_SCHED_AUTOGROUP 11 extern void sched_autogroup_create_attach(struct task_struct *p); 12 extern void sched_autogroup_detach(struct task_struct *p); 13 extern void sched_autogroup_fork(struct signal_struct *sig); 14 extern void sched_autogroup_exit(struct signal_struct *sig); 15 extern void sched_autogroup_exit_task(struct task_struct *p); 16 #ifdef CONFIG_PROC_FS 17 extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m); 18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice); 19 #endif 20 #else 21 static inline void sched_autogroup_create_attach(struct task_struct *p) { } 22 static inline void sched_autogroup_detach(struct task_struct *p) { } 23 static inline void sched_autogroup_fork(struct signal_struct *sig) { } 24 static inline void sched_autogroup_exit(struct signal_struct *sig) { } 25 static inline void sched_autogroup_exit_task(struct task_struct *p) { } 26 #endif 27 28 #ifdef CONFIG_CGROUP_SCHED 29 extern struct task_group root_task_group; 30 #endif /* CONFIG_CGROUP_SCHED */ 31 32 #endif /* _LINUX_SCHED_AUTOGROUP_H */ 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.