From: Fawad Lateef <fawadlateef@gmail.com>
To: Karthik Sarangan <karthiks@cdac.in>
Cc: Linux SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: accessing the scsi disk from a kernel module
Date: Fri, 30 Sep 2005 11:00:36 +0500 [thread overview]
Message-ID: <1e62d137050929230019fcbfb6@mail.gmail.com> (raw)
In-Reply-To: <433CCCD2.3000003@cdac.in>
On 9/30/05, Karthik Sarangan <karthiks@cdac.in> wrote:
> what do I write in a kernel module for accessing a scsi disk device?
>
What do u mean by this ??? Are you writing a driver for SCSI Disk or
Want to do read/write on it using its own driver ??? For read/write
using its own driver you can use/call generic_make_request (function
from block/ll_rw_blk.c) from your kernel module to send requests to
any block device available on the system and kernel will do the
creating and sending request to correct block device whether that will
be a SCSI disk or any disk .... And if you want directly to use the
SCSI device then you have to make requests using SCSI protocol .....
--
Fawad Lateef
next prev parent reply other threads:[~2005-09-30 6:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-30 5:27 accessing the scsi disk from a kernel module Karthik Sarangan
2005-09-30 6:00 ` Fawad Lateef [this message]
2005-09-30 6:29 ` Karthik Sarangan
2005-09-30 6:53 ` Karthik Sarangan
2005-09-30 7:56 ` Fawad Lateef
2005-09-30 7:06 ` Karthik Sarangan
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=1e62d137050929230019fcbfb6@mail.gmail.com \
--to=fawadlateef@gmail.com \
--cc=karthiks@cdac.in \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).