Linux Kernel Architecture
Chapter 2: Process Management and Scheduling 4 5 6 7 8 9 1 2 3 1 2 3 1 2 3 parent parent Parent namespace Child Namespaces Figur ...
Chapter 2: Process Management and Scheduling Implementation The implementation of namespaces requires two components: per-subsys ...
Chapter 2: Process Management and Scheduling ❑ The view on the mounted filesystem is given instruct mnt_namespace. ❑ struct pid_ ...
Chapter 2: Process Management and Scheduling .uts_ns = &init_uts_ns, \ .mnt_ns = NULL, \ INIT_NET_NS(net_ns) \ INIT_IPC_NS(i ...
Chapter 2: Process Management and Scheduling .machine = UTS_MACHINE, .domainname = UTS_DOMAINNAME, }, }; The pre-processor const ...
Chapter 2: Process Management and Scheduling ns->root_user = alloc_uid(ns, 0); /* Reset current->user with a new one */ ne ...
Chapter 2: Process Management and Scheduling namespace they are visible in. This must be reflected in the data structures. We ha ...
Chapter 2: Process Management and Scheduling ... int level; struct pid_namespace *parent; }; In reality, the structure also cont ...
Chapter 2: Process Management and Scheduling <pid.h> enum pid_type { PIDTYPE_PID, PIDTYPE_PGID, PIDTYPE_SID, PIDTYPE_MAX } ...
Chapter 2: Process Management and Scheduling Since all task structures that share an identifier are kept on a list headed bytask ...
Chapter 2: Process Management and Scheduling thetasks[type]list.hlist_add_head_rcuis a standard function to traverse a list that ...
Chapter 2: Process Management and Scheduling Because a parent namespace sees PIDs in child namespaces, but not vice versa, the k ...
Chapter 2: Process Management and Scheduling { return pid_task(find_pid_ns(nr, ns), type); } Some simpler auxiliary functions bu ...
Chapter 2: Process Management and Scheduling struct pid_namespace *tmp; struct upid *upid; ... tmp = ns; for (i = ns->level; ...
Chapter 2: Process Management and Scheduling struct list_head sibling; /* linkage in my parent’s children list */ ... } ❑ childr ...
Chapter 2: Process Management and Scheduling forkis the heavy-weight call because it creates a full copy of the parent process ...
Chapter 2: Process Management and Scheduling process. As you see in Chapter 4, the actual implementation of the page fault handl ...
Chapter 2: Process Management and Scheduling arch/x86/kernel/process_32.c asmlinkage int sys_fork(struct pt_regs regs) { return ...
Chapter 2: Process Management and Scheduling Determine PID do_fork copy_process Initialize vfork completion handler (only with C ...
Chapter 2: Process Management and Scheduling Exiting Processes Indo_forkthe bulk of the work is done by thecopy_processfunction, ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf