Re: struct bus_type query!!!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 20, 2006 at 01:41:37PM +0530, pradeep singh wrote:
> i want to use my virtual bus as a virtual SCSI bus. So doesnt i need to
> identify it as a SCSI bus by registering it ?

Ok, yes.  Just like iSCSI and usb-storage do today.  Take a look at them
for examples of how to do this.

> If you are talking about the kobject subsystem stuff, then no, you can
> > not, as the subsystem code is used internally by the driver core to
> > create busses and drivers and devices.
> >
> > If you mean something else, please expound.
> 
> actually want to  write a  module for handling request for this virtual bus
> which in turn will convert requests into normal file I/O by calling VFS api,
> which in turn will do normal disk I/O on it this time with no intervention
> of my module or my virtual bus.

Look at the scsi-debug driver for examples of this.

good luck,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux