~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/init_task.h

Version: ~ [ linux-5.13-rc2 ] ~ [ linux-5.12.4 ] ~ [ linux-5.11.21 ] ~ [ linux-5.10.37 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.119 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.190 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.232 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.268 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.268 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _LINUX__INIT_TASK_H
  3 #define _LINUX__INIT_TASK_H
  4 
  5 #include <linux/rcupdate.h>
  6 #include <linux/irqflags.h>
  7 #include <linux/utsname.h>
  8 #include <linux/lockdep.h>
  9 #include <linux/ftrace.h>
 10 #include <linux/ipc.h>
 11 #include <linux/pid_namespace.h>
 12 #include <linux/user_namespace.h>
 13 #include <linux/securebits.h>
 14 #include <linux/seqlock.h>
 15 #include <linux/rbtree.h>
 16 #include <linux/sched/autogroup.h>
 17 #include <net/net_namespace.h>
 18 #include <linux/sched/rt.h>
 19 #include <linux/livepatch.h>
 20 #include <linux/mm_types.h>
 21 
 22 #include <asm/thread_info.h>
 23 
 24 extern struct files_struct init_files;
 25 extern struct fs_struct init_fs;
 26 extern struct nsproxy init_nsproxy;
 27 extern struct group_info init_groups;
 28 extern struct cred init_cred;
 29 
 30 #ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
 31 #define INIT_PREV_CPUTIME(x)    .prev_cputime = {                       \
 32         .lock = __RAW_SPIN_LOCK_UNLOCKED(x.prev_cputime.lock),          \
 33 },
 34 #else
 35 #define INIT_PREV_CPUTIME(x)
 36 #endif
 37 
 38 #ifdef CONFIG_POSIX_TIMERS
 39 #define INIT_CPU_TIMERS(s)                                              \
 40         .cpu_timers = {                                                 \
 41                 LIST_HEAD_INIT(s.cpu_timers[0]),                        \
 42                 LIST_HEAD_INIT(s.cpu_timers[1]),                        \
 43                 LIST_HEAD_INIT(s.cpu_timers[2]),                        \
 44         },
 45 #else
 46 #define INIT_CPU_TIMERS(s)
 47 #endif
 48 
 49 #define INIT_PID_LINK(type)                                     \
 50 {                                                               \
 51         .node = {                                               \
 52                 .next = NULL,                                   \
 53                 .pprev = NULL,                                  \
 54         },                                                      \
 55         .pid = &init_struct_pid,                                \
 56 }
 57 
 58 #define INIT_TASK_COMM "swapper"
 59 
 60 /* Attach to the init_task data structure for proper alignment */
 61 #ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK
 62 #define __init_task_data __attribute__((__section__(".data..init_task")))
 63 #else
 64 #define __init_task_data /**/
 65 #endif
 66 
 67 /* Attach to the thread_info data structure for proper alignment */
 68 #define __init_thread_info __attribute__((__section__(".data..init_thread_info")))
 69 
 70 #endif
 71 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp