lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070304172842.GA29277@athena.road.mcmartin.ca>
Date:	Sun, 4 Mar 2007 12:28:42 -0500
From:	Kyle McMartin <kyle@...artin.ca>
To:	Mockern <Mockern@...dex.ru>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: kernel threads locking data

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ