init_task.c 838 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2004-2009 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2 or later
  5. */
  6. #include <linux/mm.h>
  7. #include <linux/module.h>
  8. #include <linux/init_task.h>
  9. #include <linux/mqueue.h>
  10. #include <linux/fs.h>
  11. static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
  12. static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
  13. /*
  14. * Initial task structure.
  15. *
  16. * All other task structs will be allocated on slabs in fork.c
  17. */
  18. struct task_struct init_task = INIT_TASK(init_task);
  19. EXPORT_SYMBOL(init_task);
  20. /*
  21. * Initial thread structure.
  22. *
  23. * We need to make sure that this is 8192-byte aligned due to the
  24. * way process stacks are handled. This is done by having a special
  25. * "init_task" linker map entry.
  26. */
  27. union thread_union init_thread_union
  28. __init_task_data = {
  29. INIT_THREAD_INFO(init_task)};