summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/null.c
diff options
context:
space:
mode:
authorJeff Dike2006-09-29 10:58:50 +0200
committerLinus Torvalds2006-09-29 18:18:04 +0200
commit730760e90a173ef81f89beed2f1dad2fab310f68 (patch)
treee60039deb19683fac30e58277450c657ecd33e07 /arch/um/drivers/null.c
parent[PATCH] uml: mechanical tidying after random MACs change (diff)
downloadkernel-qcow2-linux-730760e90a173ef81f89beed2f1dad2fab310f68.tar.gz
kernel-qcow2-linux-730760e90a173ef81f89beed2f1dad2fab310f68.tar.xz
kernel-qcow2-linux-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.c1
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)