From: Mike Frisch <mfrisch@saturn.tlug.org>
To: linux-kernel@vger.kernel.org
Subject: Re: fake loop
Date: Fri, 3 Aug 2001 12:25:39 -0400 [thread overview]
Message-ID: <20010803122539.A10211@saturn.tlug.org> (raw)
In-Reply-To: <20010803155735.18620.qmail@nwcst31f.netaddress.usa.net>
In-Reply-To: <20010803155735.18620.qmail@nwcst31f.netaddress.usa.net>; from ailinykh@usa.net on Fri, Aug 03, 2001 at 09:57:34AM -0600
On Fri, Aug 03, 2001 at 09:57:34AM -0600, Andrey Ilinykh wrote:
> Very often I see in kernel such code as
> do {
> dosomthing();
> } while(0);
>
> or even
>
> #define prepare_to_switch() do { } while(0)
>
> Who can explain me a reason for these fake loops?
This is answered in the Kernelnewbies FAQ @
http://kernelnewbies.org/faq/index.php3#dowhile.xml.
next prev parent reply other threads:[~2001-08-03 16:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-03 15:57 Andrey Ilinykh
2001-08-03 16:07 ` Thomas Pornin
2001-08-03 16:11 ` Martin Mačok
2001-08-03 16:13 ` Crutcher Dunnavant
2001-08-03 16:25 ` Mike Frisch [this message]
2001-08-03 16:44 ` Richard B. Johnson
2001-08-04 0:13 ` J . A . Magallon
2001-08-04 18:47 ` Thomas Pornin
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=20010803122539.A10211@saturn.tlug.org \
--to=mfrisch@saturn.tlug.org \
--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
all inboxes | Powered by JetHome®