Files
kernel/include/linux/init_task.h
T

51 lines
1.3 KiB
C
Raw Normal View History

/* 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>
#include <linux/utsname.h>
2006-07-03 00:24:50 -07:00
#include <linux/lockdep.h>
#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>
#include <linux/securebits.h>
#include <linux/seqlock.h>
2013-11-07 14:43:43 +01:00
#include <linux/rbtree.h>
#include <linux/refcount.h>
#include <linux/sched/autogroup.h>
#include <net/net_namespace.h>
#include <linux/sched/rt.h>
#include <linux/livepatch.h>
#include <linux/mm_types.h>
2005-04-16 15:20:36 -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;
extern struct nsproxy init_nsproxy;
extern struct cred init_cred;
2005-04-16 15:20:36 -07: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
#define INIT_TASK_COMM "swapper"
/* Attach to the init_task data structure for proper alignment */
#ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK
#define __init_task_data __section(".data..init_task")
#else
#define __init_task_data /**/
#endif
/* Attach to the thread_info data structure for proper alignment */
#define __init_thread_info __section(".data..init_thread_info")
2005-04-16 15:20:36 -07:00
#endif