Hi.
I am developping a block device kernel module in 2.4 series.
And i want to make a distinction between raw I/O and block I/O,
in the request function i wrote for my module.
But i could not find the way.
my_request_fn(request_queue_t *q, int rw, struct buffer_head * bh)
Is it possible ?
I would be happy if someone give me a hint about this.
Regards.
On Fri, Aug 01 2003, ooyama eiichi wrote:
> Hi.
> I am developping a block device kernel module in 2.4 series.
> And i want to make a distinction between raw I/O and block I/O,
> in the request function i wrote for my module.
> But i could not find the way.
>
> my_request_fn(request_queue_t *q, int rw, struct buffer_head * bh)
>
> Is it possible ?
> I would be happy if someone give me a hint about this.
No, it is not possible to tell the difference inside your request_fn.
--
Jens Axboe
Thanks Axboe.
hmm, it is that i have to look at the design again.
eiichi
> On Fri, Aug 01 2003, ooyama eiichi wrote:
> > Hi.
> > I am developping a block device kernel module in 2.4 series.
> > And i want to make a distinction between raw I/O and block I/O,
> > in the request function i wrote for my module.
> > But i could not find the way.
> >
> > my_request_fn(request_queue_t *q, int rw, struct buffer_head * bh)
> >
> > Is it possible ?
> > I would be happy if someone give me a hint about this.
>
> No, it is not possible to tell the difference inside your request_fn.
>
> --
> Jens Axboe
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>