All of lore.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Markus Lidel <Markus.Lidel@shadowconnect.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: Request for moving Sg_request into sg.h
Date: Tue, 08 Mar 2005 21:49:03 +1000	[thread overview]
Message-ID: <422D912F.6020505@torque.net> (raw)
In-Reply-To: <422D771E.6070104@shadowconnect.com>

Markus Lidel wrote:
> Hello,
> 
> i wanted to ask if it is possible to put the typedef "Sg_request" into 
> sg.h?

A surprising question. I would have though Sg_request was
private to the sg driver but ...

It is possible. Seems as though "#if __KERNEL__" conditional
blocks are still acceptable in kernel headers and scsi/sg,h
already has such a block.

If Sg_request moved to sg.h then that would require Sg_scatter_hold
to move as well.

> The reason i'm asking is, i need to pass data through SG_IO from an 
> application to the driver. At the moment the problem is solved by 
> copying code of the SG_IO driver into i2o_config (the passthru 
> function). I'm working on removing the passthru function and instead 
> using the SG_IO interface, but therefore i need to pass some additional 
> data to the driver. I could use the use the "flags" and "usr_ptr" fields 
> in sg_io_hdr_t, but i need to get access to them through "Sg_request".
> 
> Any comments appreciated.

Let's see what the style police say :-)

Doug Gilbert

  reply	other threads:[~2005-03-08 11:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-08  9:57 Request for moving Sg_request into sg.h Markus Lidel
2005-03-08 11:49 ` Douglas Gilbert [this message]
2005-03-08 12:10   ` Markus Lidel

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=422D912F.6020505@torque.net \
    --to=dougg@torque.net \
    --cc=Markus.Lidel@shadowconnect.com \
    --cc=linux-scsi@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.