From: Matthew Wilcox <matthew@wil.cx>
To: linux-kernel@vger.kernel.org
Cc: Oliver.Neukum@lrz.uni-muenchen.de
Subject: Re: question on atomic_t
Date: Sun, 22 Apr 2001 23:32:47 +0100 [thread overview]
Message-ID: <20010422233247.A18464@parcelfarce.linux.theplanet.co.uk> (raw)
> 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.
next reply other threads:[~2001-04-22 22:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-22 22:32 Matthew Wilcox [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-01-13 21:10 question on atomic_t Oliver Neukum
2001-04-22 22:15 Oliver Neukum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010422233247.A18464@parcelfarce.linux.theplanet.co.uk \
--to=matthew@wil.cx \
--cc=Oliver.Neukum@lrz.uni-muenchen.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox