All of lore.kernel.org
 help / color / mirror / Atom feed
* fake loop
@ 2001-08-03 15:57 Andrey Ilinykh
  2001-08-03 16:07 ` Thomas Pornin
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Andrey Ilinykh @ 2001-08-03 15:57 UTC (permalink / raw)
  To: linux-kernel

Hi!
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?
Thank you,
  Andrey


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-08-04 18:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-03 15:57 fake loop 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
2001-08-03 16:44 ` Richard B. Johnson
2001-08-04  0:13   ` J . A . Magallon
2001-08-04 18:47     ` Thomas Pornin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.