mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* kernel threads locking data
@ 2007-03-04 17:04 Mockern
  2007-03-04 17:28 ` Kyle McMartin
  0 siblings, 1 reply; 2+ messages in thread
From: Mockern @ 2007-03-04 17:04 UTC (permalink / raw)
  To: linux-kernel

hi,

how is better to lock data (a buffer) which is used by 2 kernel threads?

thank you

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: kernel threads locking data
  2007-03-04 17:04 kernel threads locking data Mockern
@ 2007-03-04 17:28 ` Kyle McMartin
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle McMartin @ 2007-03-04 17:28 UTC (permalink / raw)
  To: Mockern; +Cc: linux-kernel

On Sun, Mar 04, 2007 at 08:04:48PM +0300, Mockern wrote:
> hi,
> 
> how is better to lock data (a buffer) which is used by 2 kernel threads?
> 

if it's only used by the threads, and not by anything running in interrupt
context, use a mutex.

Documentation/mutex-design.txt has most of the info you'd need.

Cheers,
	Kyle

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-04 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-04 17:04 kernel threads locking data Mockern
2007-03-04 17:28 ` Kyle McMartin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®