mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
[PATCH] uml: commentary about forking flag
Add some commentary about UML internals, for a strange trick. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ffa0aea681
commit
acef2e55d2
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ struct task_struct;
|
||||||
struct mm_struct;
|
struct mm_struct;
|
||||||
|
|
||||||
struct thread_struct {
|
struct thread_struct {
|
||||||
|
/* This flag is set to 1 before calling do_fork (and analyzed in
|
||||||
|
* copy_thread) to mark that we are begin called from userspace (fork /
|
||||||
|
* vfork / clone), and reset to 0 after. It is left to 0 when called
|
||||||
|
* from kernelspace (i.e. kernel_thread() or fork_idle(), as of 2.6.11). */
|
||||||
int forking;
|
int forking;
|
||||||
int nsyscalls;
|
int nsyscalls;
|
||||||
struct pt_regs regs;
|
struct pt_regs regs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue