2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2005-04-16 15:20:36 -07:00
|
|
|
#ifndef _LINUX__INIT_TASK_H
|
|
|
|
|
#define _LINUX__INIT_TASK_H
|
|
|
|
|
|
2005-09-09 13:04:13 -07:00
|
|
|
#include <linux/rcupdate.h>
|
2006-07-03 00:24:42 -07:00
|
|
|
#include <linux/irqflags.h>
|
2006-10-02 02:18:14 -07:00
|
|
|
#include <linux/utsname.h>
|
2006-07-03 00:24:50 -07:00
|
|
|
#include <linux/lockdep.h>
|
2009-03-25 20:55:00 -04:00
|
|
|
#include <linux/ftrace.h>
|
2006-10-02 02:18:20 -07:00
|
|
|
#include <linux/ipc.h>
|
2006-12-08 02:37:59 -08:00
|
|
|
#include <linux/pid_namespace.h>
|
2007-07-15 23:40:59 -07:00
|
|
|
#include <linux/user_namespace.h>
|
2008-04-28 02:13:40 -07:00
|
|
|
#include <linux/securebits.h>
|
2012-12-16 20:00:34 +01:00
|
|
|
#include <linux/seqlock.h>
|
2013-11-07 14:43:43 +01:00
|
|
|
#include <linux/rbtree.h>
|
2019-01-18 14:27:30 +02:00
|
|
|
#include <linux/refcount.h>
|
2017-02-03 23:15:21 +01:00
|
|
|
#include <linux/sched/autogroup.h>
|
2007-09-12 11:55:17 +02:00
|
|
|
#include <net/net_namespace.h>
|
2013-02-16 09:46:48 +01:00
|
|
|
#include <linux/sched/rt.h>
|
2017-02-13 19:42:40 -06:00
|
|
|
#include <linux/livepatch.h>
|
2017-02-04 00:16:44 +01:00
|
|
|
#include <linux/mm_types.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-09-13 14:29:24 -07:00
|
|
|
#include <asm/thread_info.h>
|
|
|
|
|
|
2008-05-08 18:19:16 -04:00
|
|
|
extern struct files_struct init_files;
|
2008-12-26 00:35:37 -05:00
|
|
|
extern struct fs_struct init_fs;
|
2018-01-02 15:12:01 +00:00
|
|
|
extern struct nsproxy init_nsproxy;
|
|
|
|
|
extern struct cred init_cred;
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-06-30 11:30:54 +02:00
|
|
|
#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
|
|
|
|
|
#define INIT_PREV_CPUTIME(x) .prev_cputime = { \
|
|
|
|
|
.lock = __RAW_SPIN_LOCK_UNLOCKED(x.prev_cputime.lock), \
|
|
|
|
|
},
|
|
|
|
|
#else
|
|
|
|
|
#define INIT_PREV_CPUTIME(x)
|
|
|
|
|
#endif
|
|
|
|
|
|
2011-10-26 23:14:16 +02:00
|
|
|
#define INIT_TASK_COMM "swapper"
|
|
|
|
|
|
2009-06-23 19:59:36 -04:00
|
|
|
/* Attach to the init_task data structure for proper alignment */
|
2018-01-02 15:12:01 +00:00
|
|
|
#ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK
|
2020-10-21 19:36:07 -07:00
|
|
|
#define __init_task_data __section(".data..init_task")
|
2018-01-02 15:12:01 +00:00
|
|
|
#else
|
|
|
|
|
#define __init_task_data /**/
|
|
|
|
|
#endif
|
2009-06-23 19:59:36 -04:00
|
|
|
|
2018-01-02 15:12:01 +00:00
|
|
|
/* Attach to the thread_info data structure for proper alignment */
|
2020-10-21 19:36:07 -07:00
|
|
|
#define __init_thread_info __section(".data..init_thread_info")
|
2018-01-02 15:12:01 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
#endif
|