diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2005-05-01 11:58:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 11:58:56 -0400 |
commit | acef2e55d2a1b59bb5610cacc546c1d1b5de2dc9 (patch) | |
tree | 2cb120173dc5ea968bfd035d2433caa316c5b820 /include | |
parent | ffa0aea681a5f3c8aecbb86f1cfd3486043805de (diff) |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-um/processor-generic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-um/processor-generic.h b/include/asm-um/processor-generic.h index 4d9404989b5a..b953b1ad3b02 100644 --- a/include/asm-um/processor-generic.h +++ b/include/asm-um/processor-generic.h | |||
@@ -17,6 +17,10 @@ struct task_struct; | |||
17 | struct mm_struct; | 17 | struct mm_struct; |
18 | 18 | ||
19 | struct thread_struct { | 19 | struct thread_struct { |
20 | /* This flag is set to 1 before calling do_fork (and analyzed in | ||
21 | * copy_thread) to mark that we are begin called from userspace (fork / | ||
22 | * vfork / clone), and reset to 0 after. It is left to 0 when called | ||
23 | * from kernelspace (i.e. kernel_thread() or fork_idle(), as of 2.6.11). */ | ||
20 | int forking; | 24 | int forking; |
21 | int nsyscalls; | 25 | int nsyscalls; |
22 | struct pt_regs regs; | 26 | struct pt_regs regs; |