Re: The CURRENT macro

Arnaldo Carvalho de Melo
2002-01-03T23:40:30Z

Em Thu, Jan 03, 2002 at 02:48:39PM -0700, Jonathan Corbet escreveu:
> > In Alessandro Rubini's book Linux Device Driver(Second
> > Edition), Chatper 12

> Alessandro and...um...some other guy...:)

Yes, I know that other guy, very nice guy indeed 8)

> > 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?

> A little grepping in the source would give you the answer there. It's in
> .../include/linux/blk.h.

Or:

make tags
vi -t CURRENT

8)

- Arnaldo