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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/