* question on atomic_t
@ 2001-04-22 22:15 Oliver Neukum
0 siblings, 0 replies; 3+ messages in thread
From: Oliver Neukum @ 2001-04-22 22:15 UTC (permalink / raw)
To: linux-kernel
Hi list,
can I assume that a member of a structure of type atomic_t is 0 after using
memset to zero on the structure ?
TIA
Oliver
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question on atomic_t
@ 2001-04-22 22:32 Matthew Wilcox
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Wilcox @ 2001-04-22 22:32 UTC (permalink / raw)
To: linux-kernel; +Cc: Oliver.Neukum
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* question on atomic_t
@ 2010-01-13 21:10 Oliver Neukum
0 siblings, 0 replies; 3+ messages in thread
From: Oliver Neukum @ 2010-01-13 21:10 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hi,
is the behavior of atomic_t on overflow defined on all architectures?
Regards
Oliver
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-13 21:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-22 22:15 question on atomic_t Oliver Neukum
-- strict thread matches above, loose matches on Subject: below --
2001-04-22 22:32 Matthew Wilcox
2010-01-13 21:10 Oliver Neukum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox