diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-07-26 13:41:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-26 14:35:16 -0400 |
commit | f938d2c892db0d80d144253d4a7b7083efdbedeb (patch) | |
tree | 1fbc946a9fb59827001a5d4d5224abe5e624e605 /Documentation/lguest/lguest.c | |
parent | dfb68689bf3e3d31dc9fb5c2bde5379a4ca9b0ec (diff) |
lguest: documentation I: Preparation
The netfilter code had very good documentation: the Netfilter Hacking HOWTO.
Noone ever read it.
So this time I'm trying something different, using a bit of Knuthiness.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/lguest/lguest.c')
-rw-r--r-- | Documentation/lguest/lguest.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/lguest/lguest.c b/Documentation/lguest/lguest.c index 62a8133393e1..fc1bf70abfb1 100644 --- a/Documentation/lguest/lguest.c +++ b/Documentation/lguest/lguest.c | |||
@@ -1,5 +1,10 @@ | |||
1 | /* Simple program to layout "physical" memory for new lguest guest. | 1 | /*P:100 This is the Launcher code, a simple program which lays out the |
2 | * Linked high to avoid likely physical memory. */ | 2 | * "physical" memory for the new Guest by mapping the kernel image and the |
3 | * virtual devices, then reads repeatedly from /dev/lguest to run the Guest. | ||
4 | * | ||
5 | * The only trick: the Makefile links it at a high address so it will be clear | ||
6 | * of the guest memory region. It means that each Guest cannot have more than | ||
7 | * about 2.5G of memory on a normally configured Host. :*/ | ||
3 | #define _LARGEFILE64_SOURCE | 8 | #define _LARGEFILE64_SOURCE |
4 | #define _GNU_SOURCE | 9 | #define _GNU_SOURCE |
5 | #include <stdio.h> | 10 | #include <stdio.h> |