Re: linux usb

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

 



On Sat, Jul 21, 2012 at 08:06:01PM +0530, chetan cr123 wrote:
> Hello,
> Kindly let me know
> how an usb device connection is reported to kernel when we plug an usb cable.
> I see that Udev/ueventd is responsible for that.
> I want to know how exactly usb device will report to (kernel or udev)
> when an device is plugged.
> how can to create an sysfs(node) from gadget driver and this driver
> reports to Udev/uevent when an USB device is connected.
> So that Application can read Uevents of USB plugin and do the
> necessary action (in my case disable the block driver and load usb
> gadget mass storage to communicate with PC -----> SD-card of
> Tablet/mobile) .
> Kindly let me know how can i do this.

That's a lot to ask of us to duplicate.  Have you read the source code
of the kernel that shows how this is done?  Have you read the
documentation?  How about the Linux Device Drivers book?  All of that is
free online.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux