diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-09-29 04:58:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 12:18:04 -0400 |
commit | 730760e90a173ef81f89beed2f1dad2fab310f68 (patch) | |
tree | e60039deb19683fac30e58277450c657ecd33e07 /arch/um/drivers/null.c | |
parent | b10aeeef554eb1ff80e10111829f6e7484877811 (diff) |
[PATCH] uml: locking documentation
Some locking documentation and a cleanup. uml_exitcode is copied into a local
before sprintf sees it, in case sprintf does anything non-atomic with it.
The rest are comments about why certain globals don't need any kind of
locking.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/null.c')
-rw-r--r-- | arch/um/drivers/null.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/drivers/null.c b/arch/um/drivers/null.c index 3683ed44315d..9016c68beee8 100644 --- a/arch/um/drivers/null.c +++ b/arch/um/drivers/null.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include "chan_user.h" | 8 | #include "chan_user.h" |
9 | #include "os.h" | 9 | #include "os.h" |
10 | 10 | ||
11 | /* This address is used only as a unique identifer */ | ||
11 | static int null_chan; | 12 | static int null_chan; |
12 | 13 | ||
13 | static void *null_init(char *str, int device, const struct chan_opts *opts) | 14 | static void *null_init(char *str, int device, const struct chan_opts *opts) |