From: Jens Axboe <axboe@suse.de>
To: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Cc: Jeff Garzik <jgarzik@pobox.com>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [patch][3/9] ide: add ide_sg_init() helper
Date: Thu, 9 Sep 2004 16:47:05 +0200 [thread overview]
Message-ID: <20040909144705.GD1737@suse.de> (raw)
In-Reply-To: <200409091554.41718.bzolnier@elka.pw.edu.pl>
On Thu, Sep 09 2004, Bartlomiej Zolnierkiewicz wrote:
>
> On Thursday 09 September 2004 05:17, Jeff Garzik wrote:
> > Bartlomiej Zolnierkiewicz wrote:
> > > +static inline void ide_sg_init(struct scatterlist *sg, u8 *buf, unsigned int buflen)
> > > +{
> > > + memset(sg, 0, sizeof(*sg));
> > > +
> > > + sg->page = virt_to_page(buf);
> > > + sg->offset = offset_in_page(buf);
> > > + sg->length = buflen;
> > > +}
> > > +
> >
> >
> > Surely this should be more generic?
>
> Any idea where to put it? linux/blkdev.h?
How about asm/scatterlist.h?
--
Jens Axboe
next prev parent reply other threads:[~2004-09-09 14:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-08 19:26 [patch][3/9] ide: add ide_sg_init() helper Bartlomiej Zolnierkiewicz
2004-09-09 3:17 ` Jeff Garzik
2004-09-09 13:54 ` Bartlomiej Zolnierkiewicz
2004-09-09 14:47 ` Jens Axboe [this message]
2004-09-09 15:31 ` Bartlomiej Zolnierkiewicz
2004-09-09 15:38 ` Jens Axboe
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=20040909144705.GD1737@suse.de \
--to=axboe@suse.de \
--cc=bzolnier@elka.pw.edu.pl \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.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 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.