public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* The CURRENT macro
@ 2002-01-03 21:34 Michael Zhu
  2002-01-03 21:48 ` Jonathan Corbet
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Michael Zhu @ 2002-01-03 21:34 UTC (permalink / raw)
  To: linux-kernel

In Alessandro Rubini's book Linux Device Driver(Second
Edition), Chatper 12, he said that "By accessing the
fields in the request structure, usually by way of
CURRENT" and "CURRENT is just a pointer into
blk_dev[MAJOR_NR].request_queue". I know CURRENT is
just a macro. Where can I find the definition of this
macro?
I just don't know how to get the struct request from
the request_queue(a request_queue_t struct). CURRENT
points to which field in the
blk_dev[MAJOR_NR].request_queue? Thank you very much.

Michael

______________________________________________________ 
Send your holiday cheer with http://greetings.yahoo.ca

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

end of thread, other threads:[~2002-01-04  8:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-03 21:34 The CURRENT macro Michael Zhu
2002-01-03 21:48 ` Jonathan Corbet
2002-01-03 21:55   ` Arnaldo Carvalho de Melo
2002-01-04  8:03     ` Terje Eggestad
2002-01-03 22:01 ` Richard B. Johnson
2002-01-03 22:14 ` Peter Makholm
2002-01-03 22:55 ` Tom Gall
2002-01-03 22:57 ` Tom Gall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox