* [uml-devel] [patch 6/7] uml: commentary about forking flag
@ 2005-04-24 18:19 blaisorblade
0 siblings, 0 replies; only message in thread
From: blaisorblade @ 2005-04-24 18:19 UTC (permalink / raw)
To: akpm; +Cc: jdike, bstroesser, linux-kernel, user-mode-linux-devel,
blaisorblade
Add some commentary about UML internals, for a strange trick.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---
linux-2.6.12-paolo/include/asm-um/processor-generic.h | 4 ++++
1 files changed, 4 insertions(+)
diff -puN include/asm-um/processor-generic.h~uml-commentary-about-forking-flag include/asm-um/processor-generic.h
--- linux-2.6.12/include/asm-um/processor-generic.h~uml-commentary-about-forking-flag 2005-04-24 20:17:06.000000000 +0200
+++ linux-2.6.12-paolo/include/asm-um/processor-generic.h 2005-04-24 20:17:06.000000000 +0200
@@ -17,6 +17,10 @@ struct task_struct;
struct mm_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 nsyscalls;
struct pt_regs regs;
_
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-24 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-24 18:19 [uml-devel] [patch 6/7] uml: commentary about forking flag blaisorblade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox