Re: question on atomic_t

From: Matthew Wilcox (matthew@wil.cx)
Date: Sun Apr 22 2001 - 17:32:47 EST


> can I assume that a member of a structure of type atomic_t is 0 after
> using memset to zero on the structure ?

You must not do this. use atomic_init instead. on parisc, the locked value
of a spinlock is 0, so no more updates to that atomic value would ever work.

-- 
Revolutions do not require corporate support.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:43 EST