2012-06-05 19:57:01

by Ouyang

[permalink] [raw]
Subject: usb.c

Wireless-testing is a kernel about wireless card or something related, but why
there is a file named usb.c? Is it related to usb? Hope who can answer it to me.
Thank you so much.



2012-06-05 20:10:54

by Larry Finger

[permalink] [raw]
Subject: Re: usb.c

On 06/05/2012 02:56 PM, Ouyang wrote:
> Wireless-testing is a kernel about wireless card or something related, but why
> there is a file named usb.c? Is it related to usb? Hope who can answer it to me.
> Thank you so much.

Wireless-testing is a complete tree, thus it has every file that is found in the
mainline tree. There are a number of files named usb.c. To know what it does,
you would need to tell what path it is in. In general, a file named usb.c would
contain the interface between a device and the USB system.

The differences between wireless-testing and mainline are related to the
development. New material comes through wireless-testing and goes through
several trees before if is merged into mainline. Usually wireless-testing is
about 1 version newer than mainline.

Larry


2012-06-05 22:42:49

by Julian Calaby

[permalink] [raw]
Subject: Re: usb.c

Hi,

On Wed, Jun 6, 2012 at 6:23 AM, Ouyang <[email protected]> wrote:
> I am still a little confused. Would you please set an example for
> drivers/net/wireless/rtlwifi/usb.c ?

That contains some of the code for dealing with USB RTLWifi devices.

Thanks,

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

2012-06-06 04:01:44

by Larry Finger

[permalink] [raw]
Subject: Re: usb.c

On 06/05/2012 03:23 PM, Ouyang wrote:

> Thank you so much for the reply. I am so appreciated.
>
> I am still a little confused. Would you please set an example for
> drivers/net/wireless/rtlwifi/usb.c ?

That file contains the USB-specific low-level routines for the driver used by
the RTL8188CU devices built by Realtek. If you want to know what that file does,
read the comments.

Larry

2012-06-05 20:23:41

by Ouyang

[permalink] [raw]
Subject: Re: usb.c

Larry Finger <Larry.Finger@...> writes:
>
> Wireless-testing is a complete tree, thus it has every file that is found in
the
> mainline tree. There are a number of files named usb.c. To know what it does,
> you would need to tell what path it is in. In general, a file named usb.c
would
> contain the interface between a device and the USB system.
>
> The differences between wireless-testing and mainline are related to the
> development. New material comes through wireless-testing and goes through
> several trees before if is merged into mainline. Usually wireless-testing is
> about 1 version newer than mainline.
>
> Larry
>
>
>
Thank you so much for the reply. I am so appreciated.

I am still a little confused. Would you please set an example for
drivers/net/wireless/rtlwifi/usb.c ?