[Ilugc] Function flow at the time of USB device connection (Enumeration)

  • From: shakthimaan@xxxxxxxxx (Shakthi Kannan)
  • Date: Mon Nov 12 17:05:03 2007

Hi,

----- On 11/12/07, Srinivas G. <srinivasg@xxxxxxxxxxxxxxxxxxxxx> wrote:
| ehci_urb_enqueue method. So, could any one please tell/suggest us the
| function name OR procedure to find out.
\--

1. What is your platform?

2. Learn to use lxr.linux.no:

http://lxr.linux.no/ident?i=ehci_urb_enqueue

Depending on the bus to which the host controller is connected, the
corresponding functions are registered. For example, PCI based (2.6
Linux kernel):

http://lxr.linux.no/source/drivers/usb/host/ehci-pci.c#L354

Follow:

From hub, for example invokes usb_submit_urb():
http://lxr.linux.no/source/drivers/usb/core/hub.c
    |
    v
hcd.c - usb_submit_urb ()
http://lxr.linux.no/source/drivers/usb/core/urb.c#L220
    |
    v
urb.c - usb_hcd_submit_urb ()
http://lxr.linux.no/source/drivers/usb/core/urb.c#L375
    |
    v
core/hcd.c - hcd->driver->urb_enqueue ()
http://lxr.linux.no/source/drivers/usb/core/hcd.c#L1014

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

Other related posts: