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 /drivers/lguest/lguest_user.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 'drivers/lguest/lguest_user.c')
-rw-r--r-- | drivers/lguest/lguest_user.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c index e90d7a783daf..6ae86f20ce3d 100644 --- a/drivers/lguest/lguest_user.c +++ b/drivers/lguest/lguest_user.c | |||
@@ -1,4 +1,9 @@ | |||
1 | /* Userspace control of the guest, via /dev/lguest. */ | 1 | /*P:200 This contains all the /dev/lguest code, whereby the userspace launcher |
2 | * controls and communicates with the Guest. For example, the first write will | ||
3 | * tell us the memory size, pagetable, entry point and kernel address offset. | ||
4 | * A read will run the Guest until a signal is pending (-EINTR), or the Guest | ||
5 | * does a DMA out to the Launcher. Writes are also used to get a DMA buffer | ||
6 | * registered by the Guest and to send the Guest an interrupt. :*/ | ||
2 | #include <linux/uaccess.h> | 7 | #include <linux/uaccess.h> |
3 | #include <linux/miscdevice.h> | 8 | #include <linux/miscdevice.h> |
4 | #include <linux/fs.h> | 9 | #include <linux/fs.h> |