2013-01-14 20:28:26 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
2013-10-17 01:09:24 +02:00
|
|
|
#ifndef _UAPI_LINUX_SCHED_H
|
|
|
|
#define _UAPI_LINUX_SCHED_H
|
2019-10-03 03:29:20 +02:00
|
|
|
#include <linux/types.h>
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CSIGNAL 0x000000ff
|
|
|
|
#define CLONE_VM 0x00000100
|
|
|
|
#define CLONE_FS 0x00000200
|
|
|
|
#define CLONE_FILES 0x00000400
|
|
|
|
#define CLONE_SIGHAND 0x00000800
|
2019-07-08 21:45:46 +02:00
|
|
|
#define CLONE_PIDFD 0x00001000
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CLONE_PTRACE 0x00002000
|
|
|
|
#define CLONE_VFORK 0x00004000
|
|
|
|
#define CLONE_PARENT 0x00008000
|
|
|
|
#define CLONE_THREAD 0x00010000
|
|
|
|
#define CLONE_NEWNS 0x00020000
|
|
|
|
#define CLONE_SYSVSEM 0x00040000
|
|
|
|
#define CLONE_SETTLS 0x00080000
|
|
|
|
#define CLONE_PARENT_SETTID 0x00100000
|
|
|
|
#define CLONE_CHILD_CLEARTID 0x00200000
|
|
|
|
#define CLONE_DETACHED 0x00400000
|
|
|
|
#define CLONE_UNTRACED 0x00800000
|
|
|
|
#define CLONE_CHILD_SETTID 0x01000000
|
2016-08-24 21:15:38 +02:00
|
|
|
#define CLONE_NEWCGROUP 0x02000000
|
|
|
|
#define CLONE_NEWUTS 0x04000000
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CLONE_NEWIPC 0x08000000
|
|
|
|
#define CLONE_NEWUSER 0x10000000
|
|
|
|
#define CLONE_NEWPID 0x20000000
|
2016-08-24 21:15:38 +02:00
|
|
|
#define CLONE_NEWNET 0x40000000
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CLONE_IO 0x80000000
|
2020-02-05 01:16:51 +01:00
|
|
|
#define CLONE_CLEAR_SIGHAND 0x100000000ULL
|
2020-04-06 20:38:04 +02:00
|
|
|
#define CLONE_NEWTIME 0x00000080
|
2019-12-10 00:36:13 +01:00
|
|
|
#ifndef __ASSEMBLY__
|
2019-10-03 03:29:20 +02:00
|
|
|
struct clone_args {
|
|
|
|
__aligned_u64 flags;
|
|
|
|
__aligned_u64 pidfd;
|
|
|
|
__aligned_u64 child_tid;
|
|
|
|
__aligned_u64 parent_tid;
|
|
|
|
__aligned_u64 exit_signal;
|
|
|
|
__aligned_u64 stack;
|
|
|
|
__aligned_u64 stack_size;
|
|
|
|
__aligned_u64 tls;
|
2020-02-05 01:16:51 +01:00
|
|
|
__aligned_u64 set_tid;
|
|
|
|
__aligned_u64 set_tid_size;
|
2019-10-03 03:29:20 +02:00
|
|
|
};
|
2019-12-10 00:36:13 +01:00
|
|
|
#endif
|
|
|
|
#define CLONE_ARGS_SIZE_VER0 64
|
2020-02-05 01:16:51 +01:00
|
|
|
#define CLONE_ARGS_SIZE_VER1 80
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SCHED_NORMAL 0
|
|
|
|
#define SCHED_FIFO 1
|
2016-08-24 21:15:38 +02:00
|
|
|
#define SCHED_RR 2
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SCHED_BATCH 3
|
|
|
|
#define SCHED_IDLE 5
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SCHED_DEADLINE 6
|
2016-08-24 21:15:38 +02:00
|
|
|
#define SCHED_RESET_ON_FORK 0x40000000
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SCHED_FLAG_RESET_ON_FORK 0x01
|
2017-11-15 02:32:13 +01:00
|
|
|
#define SCHED_FLAG_RECLAIM 0x02
|
2018-06-27 23:12:29 +02:00
|
|
|
#define SCHED_FLAG_DL_OVERRUN 0x04
|
2019-10-03 03:29:20 +02:00
|
|
|
#define SCHED_FLAG_KEEP_POLICY 0x08
|
|
|
|
#define SCHED_FLAG_KEEP_PARAMS 0x10
|
|
|
|
#define SCHED_FLAG_UTIL_CLAMP_MIN 0x20
|
|
|
|
#define SCHED_FLAG_UTIL_CLAMP_MAX 0x40
|
|
|
|
#define SCHED_FLAG_KEEP_ALL (SCHED_FLAG_KEEP_POLICY | SCHED_FLAG_KEEP_PARAMS)
|
|
|
|
#define SCHED_FLAG_UTIL_CLAMP (SCHED_FLAG_UTIL_CLAMP_MIN | SCHED_FLAG_UTIL_CLAMP_MAX)
|
|
|
|
#define SCHED_FLAG_ALL (SCHED_FLAG_RESET_ON_FORK | SCHED_FLAG_RECLAIM | SCHED_FLAG_DL_OVERRUN | SCHED_FLAG_KEEP_ALL | SCHED_FLAG_UTIL_CLAMP)
|
2014-07-10 00:33:25 +02:00
|
|
|
#endif
|