Version:
~ [ 0.6-2.3.46 ] ~
Architecture:
~ [ um ] ~
** Warning: Cannot open xref database.
1 #include "linux/mm.h"
2 #include "linux/sched.h"
3 #include "asm/uaccess.h"
4 #include "asm/pgtable.h"
5 #include "user_util.h"
6
7 static struct vm_area_struct init_mmap = INIT_MMAP;
8 static struct fs_struct init_fs = INIT_FS;
9 static struct files_struct init_files = INIT_FILES;
10 static struct signal_struct init_signals = INIT_SIGNALS;
11 struct mm_struct init_mm = INIT_MM(init_mm);
12
13 /*
14 * Initial task structure.
15 *
16 * We need to make sure that this is 8192-byte aligned due to the
17 * way process stacks are handled. This is done by having a special
18 * "init_task" linker map entry..
19 */
20
21 union task_union init_task_union
22 __attribute__((__section__(".data.init_task"))) =
23 { INIT_TASK(init_task_union.task) };
24
25 struct task_struct *alloc_task_struct(void){
26 struct task_struct *task;
27
28 task = (struct task_struct *) __get_free_pages(GFP_KERNEL,1);
29 if(task == NULL) return(NULL);
30 stack_protections((unsigned long) task, 2 * PAGE_SIZE);
31 return(task);
32 }
33
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.