diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-09-29 01:58:50 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 09:18:04 -0700 |
commit | 730760e90a173ef81f89beed2f1dad2fab310f68 (patch) | |
tree | e60039deb19683fac30e58277450c657ecd33e07 /arch/um/drivers/null.c | |
parent | b10aeeef554eb1ff80e10111829f6e7484877811 (diff) | |
download | linux-stable-730760e90a173ef81f89beed2f1dad2fab310f68.tar.gz linux-stable-730760e90a173ef81f89beed2f1dad2fab310f68.tar.bz2 linux-stable-730760e90a173ef81f89beed2f1dad2fab310f68.zip |
[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 @@ #include "chan_user.h" #include "os.h" +/* This address is used only as a unique identifer */ static int null_chan; static void *null_init(char *str, int device, const struct chan_opts *opts) |