Thread (6 messages) 6 messages, 5 authors, 2006-01-20

Re: [PATCH] powerpc: remove useless spinlock from mpc83xx watchdog

From: Alan Cox <hidden>
Date: 2006-01-19 09:50:00
Also in: lkml

On Iau, 2006-01-19 at 00:58 -0600, Kumar Gala wrote:
Since we can only open the watchdog once having a spinlock to protect
multiple access is pointless.

Signed-off-by: Kumar Gala <redacted>
NAK

This is a common mistake.

open is called on the open() call and is indeed in this case 'single
open', but file handles can be inherited and many users may have access
to a single file handle.

eg

	f = open("/dev/watchdog", O_RDWR);
	fork();
	while(1) {
		write(f, "Boing", 5);
	}

Alan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help