122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _UAPI_LINUX_SCHED_H
2022851890Sopenharmony_ci#define _UAPI_LINUX_SCHED_H
2122851890Sopenharmony_ci#include <linux/types.h>
2222851890Sopenharmony_ci#define CSIGNAL 0x000000ff
2322851890Sopenharmony_ci#define CLONE_VM 0x00000100
2422851890Sopenharmony_ci#define CLONE_FS 0x00000200
2522851890Sopenharmony_ci#define CLONE_FILES 0x00000400
2622851890Sopenharmony_ci#define CLONE_SIGHAND 0x00000800
2722851890Sopenharmony_ci#define CLONE_PIDFD 0x00001000
2822851890Sopenharmony_ci#define CLONE_PTRACE 0x00002000
2922851890Sopenharmony_ci#define CLONE_VFORK 0x00004000
3022851890Sopenharmony_ci#define CLONE_PARENT 0x00008000
3122851890Sopenharmony_ci#define CLONE_THREAD 0x00010000
3222851890Sopenharmony_ci#define CLONE_NEWNS 0x00020000
3322851890Sopenharmony_ci#define CLONE_SYSVSEM 0x00040000
3422851890Sopenharmony_ci#define CLONE_SETTLS 0x00080000
3522851890Sopenharmony_ci#define CLONE_PARENT_SETTID 0x00100000
3622851890Sopenharmony_ci#define CLONE_CHILD_CLEARTID 0x00200000
3722851890Sopenharmony_ci#define CLONE_DETACHED 0x00400000
3822851890Sopenharmony_ci#define CLONE_UNTRACED 0x00800000
3922851890Sopenharmony_ci#define CLONE_CHILD_SETTID 0x01000000
4022851890Sopenharmony_ci#define CLONE_NEWCGROUP 0x02000000
4122851890Sopenharmony_ci#define CLONE_NEWUTS 0x04000000
4222851890Sopenharmony_ci#define CLONE_NEWIPC 0x08000000
4322851890Sopenharmony_ci#define CLONE_NEWUSER 0x10000000
4422851890Sopenharmony_ci#define CLONE_NEWPID 0x20000000
4522851890Sopenharmony_ci#define CLONE_NEWNET 0x40000000
4622851890Sopenharmony_ci#define CLONE_IO 0x80000000
4722851890Sopenharmony_ci#define CLONE_CLEAR_SIGHAND 0x100000000ULL
4822851890Sopenharmony_ci#define CLONE_INTO_CGROUP 0x200000000ULL
4922851890Sopenharmony_ci#define CLONE_NEWTIME 0x00000080
5022851890Sopenharmony_ci#ifndef __ASSEMBLY__
5122851890Sopenharmony_cistruct clone_args {
5222851890Sopenharmony_ci  __aligned_u64 flags;
5322851890Sopenharmony_ci  __aligned_u64 pidfd;
5422851890Sopenharmony_ci  __aligned_u64 child_tid;
5522851890Sopenharmony_ci  __aligned_u64 parent_tid;
5622851890Sopenharmony_ci  __aligned_u64 exit_signal;
5722851890Sopenharmony_ci  __aligned_u64 stack;
5822851890Sopenharmony_ci  __aligned_u64 stack_size;
5922851890Sopenharmony_ci  __aligned_u64 tls;
6022851890Sopenharmony_ci  __aligned_u64 set_tid;
6122851890Sopenharmony_ci  __aligned_u64 set_tid_size;
6222851890Sopenharmony_ci  __aligned_u64 cgroup;
6322851890Sopenharmony_ci};
6422851890Sopenharmony_ci#endif
6522851890Sopenharmony_ci#define CLONE_ARGS_SIZE_VER0 64
6622851890Sopenharmony_ci#define CLONE_ARGS_SIZE_VER1 80
6722851890Sopenharmony_ci#define CLONE_ARGS_SIZE_VER2 88
6822851890Sopenharmony_ci#define SCHED_NORMAL 0
6922851890Sopenharmony_ci#define SCHED_FIFO 1
7022851890Sopenharmony_ci#define SCHED_RR 2
7122851890Sopenharmony_ci#define SCHED_BATCH 3
7222851890Sopenharmony_ci#define SCHED_IDLE 5
7322851890Sopenharmony_ci#define SCHED_DEADLINE 6
7422851890Sopenharmony_ci#define SCHED_RESET_ON_FORK 0x40000000
7522851890Sopenharmony_ci#define SCHED_FLAG_RESET_ON_FORK 0x01
7622851890Sopenharmony_ci#define SCHED_FLAG_RECLAIM 0x02
7722851890Sopenharmony_ci#define SCHED_FLAG_DL_OVERRUN 0x04
7822851890Sopenharmony_ci#define SCHED_FLAG_KEEP_POLICY 0x08
7922851890Sopenharmony_ci#define SCHED_FLAG_KEEP_PARAMS 0x10
8022851890Sopenharmony_ci#define SCHED_FLAG_UTIL_CLAMP_MIN 0x20
8122851890Sopenharmony_ci#define SCHED_FLAG_UTIL_CLAMP_MAX 0x40
8222851890Sopenharmony_ci#define SCHED_FLAG_KEEP_ALL (SCHED_FLAG_KEEP_POLICY | SCHED_FLAG_KEEP_PARAMS)
8322851890Sopenharmony_ci#define SCHED_FLAG_UTIL_CLAMP (SCHED_FLAG_UTIL_CLAMP_MIN | SCHED_FLAG_UTIL_CLAMP_MAX)
8422851890Sopenharmony_ci#define SCHED_FLAG_ALL (SCHED_FLAG_RESET_ON_FORK | SCHED_FLAG_RECLAIM | SCHED_FLAG_DL_OVERRUN | SCHED_FLAG_KEEP_ALL | SCHED_FLAG_UTIL_CLAMP)
8522851890Sopenharmony_ci#endif
86