struct bus_type query!!!!

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

 





On 1/20/06, Greg KH <greg@xxxxxxxxx > wrote:
> can i register my bus with any existing subsystem int the kernel i like ?



What do you mean by "subsystem"?

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 ?

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.

> Finally greg can you plz give me some pointers to Kernel Event layer API
> specifically, couldnt find much on googling.

What specifically about the kobject_uevent() function needs to be
explained?  You call it when you want to emit the event, and the kobject
core also calls it when different things happen to kobjects,
automatically.

It really isn't that complex :)

yes finally i am realising this :-)

thanks for the help


--
play the game

[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