diff options
| author | 2006-09-29 01:58:50 -0700 | |
|---|---|---|
| committer | 2006-09-29 09:18:04 -0700 | |
| commit | 730760e90a173ef81f89beed2f1dad2fab310f68 (patch) | |
| tree | e60039deb19683fac30e58277450c657ecd33e07 /arch/um/drivers/random.c | |
| parent | [PATCH] uml: mechanical tidying after random MACs change (diff) | |
| download | linux-dev-730760e90a173ef81f89beed2f1dad2fab310f68.tar.xz linux-dev-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/random.c')
| -rw-r--r-- | arch/um/drivers/random.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/um/drivers/random.c b/arch/um/drivers/random.c index ae9909415b9c..73b2bdd6d2d3 100644 --- a/arch/um/drivers/random.c +++ b/arch/um/drivers/random.c @@ -20,6 +20,10 @@ #define RNG_MISCDEV_MINOR 183 /* official */ +/* Changed at init time, in the non-modular case, and at module load + * time, in the module case. Presumably, the module subsystem + * protects against a module being loaded twice at the same time. + */ static int random_fd = -1; static int rng_dev_open (struct inode *inode, struct file *filp) |
