* How to get scsi_device structure for /dev/sda
@ 2011-10-14 4:29 Pankaj B
2011-10-14 7:33 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Pankaj B @ 2011-10-14 4:29 UTC (permalink / raw)
To: linux-scsi
Hi,
Is it possible to get scsi_device structure for a disk attached to system?
There is a similar function "open_bdev_exclusive" that gives
block_device structure
for /dev/sda.
Thanks,
Pankaj
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get scsi_device structure for /dev/sda
2011-10-14 4:29 How to get scsi_device structure for /dev/sda Pankaj B
@ 2011-10-14 7:33 ` Christoph Hellwig
2011-10-14 7:46 ` Pankaj B
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2011-10-14 7:33 UTC (permalink / raw)
To: Pankaj B; +Cc: linux-scsi
On Fri, Oct 14, 2011 at 09:59:43AM +0530, Pankaj B wrote:
> Hi,
> Is it possible to get scsi_device structure for a disk attached to system?
No.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get scsi_device structure for /dev/sda
2011-10-14 7:33 ` Christoph Hellwig
@ 2011-10-14 7:46 ` Pankaj B
0 siblings, 0 replies; 3+ messages in thread
From: Pankaj B @ 2011-10-14 7:46 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-scsi
On Fri, Oct 14, 2011 at 1:03 PM, Christoph Hellwig <hch@infradead.org> wrote:
> On Fri, Oct 14, 2011 at 09:59:43AM +0530, Pankaj B wrote:
>> Hi,
>> Is it possible to get scsi_device structure for a disk attached to system?
>
> No.
>
>
Okay. Actually I want to issue ATA_16 CDB on /dev/sda through kernel module.
Any pointers, how it can be achieved?
Thanks,
Pankaj
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-14 7:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 4:29 How to get scsi_device structure for /dev/sda Pankaj B
2011-10-14 7:33 ` Christoph Hellwig
2011-10-14 7:46 ` Pankaj B
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox