diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-22 01:09:50 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-22 01:09:50 -0400 |
commit | 9f54288def3f92b7805eb6d4b1ddcd73ecf6e889 (patch) | |
tree | bb46242a92e47112c2967354b3be0c6daecae7a7 /drivers/lguest/lguest_user.c | |
parent | 3c3ed482dc077a67903a58c9e1aedba1bb18c18a (diff) |
lguest: update comments
Also removes a long-unused #define and an extraneous semicolon.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/lguest_user.c')
-rw-r--r-- | drivers/lguest/lguest_user.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c index 948c547b8e9e..f97e625241ad 100644 --- a/drivers/lguest/lguest_user.c +++ b/drivers/lguest/lguest_user.c | |||
@@ -1,8 +1,10 @@ | |||
1 | /*P:200 This contains all the /dev/lguest code, whereby the userspace launcher | 1 | /*P:200 This contains all the /dev/lguest code, whereby the userspace |
2 | * controls and communicates with the Guest. For example, the first write will | 2 | * launcher controls and communicates with the Guest. For example, |
3 | * tell us the Guest's memory layout and entry point. A read will run the | 3 | * the first write will tell us the Guest's memory layout and entry |
4 | * Guest until something happens, such as a signal or the Guest doing a NOTIFY | 4 | * point. A read will run the Guest until something happens, such as |
5 | * out to the Launcher. | 5 | * a signal or the Guest doing a NOTIFY out to the Launcher. There is |
6 | * also a way for the Launcher to attach eventfds to particular NOTIFY | ||
7 | * values instead of returning from the read() call. | ||
6 | :*/ | 8 | :*/ |
7 | #include <linux/uaccess.h> | 9 | #include <linux/uaccess.h> |
8 | #include <linux/miscdevice.h> | 10 | #include <linux/miscdevice.h> |
@@ -357,8 +359,8 @@ static int initialize(struct file *file, const unsigned long __user *input) | |||
357 | goto free_eventfds; | 359 | goto free_eventfds; |
358 | 360 | ||
359 | /* | 361 | /* |
360 | * Initialize the Guest's shadow page tables, using the toplevel | 362 | * Initialize the Guest's shadow page tables. This allocates |
361 | * address the Launcher gave us. This allocates memory, so can fail. | 363 | * memory, so can fail. |
362 | */ | 364 | */ |
363 | err = init_guest_pagetable(lg); | 365 | err = init_guest_pagetable(lg); |
364 | if (err) | 366 | if (err) |
@@ -516,6 +518,7 @@ static const struct file_operations lguest_fops = { | |||
516 | .read = read, | 518 | .read = read, |
517 | .llseek = default_llseek, | 519 | .llseek = default_llseek, |
518 | }; | 520 | }; |
521 | /*:*/ | ||
519 | 522 | ||
520 | /* | 523 | /* |
521 | * This is a textbook example of a "misc" character device. Populate a "struct | 524 | * This is a textbook example of a "misc" character device. Populate a "struct |