Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2007 21:39:35 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: help for understand the usb calls:
Message-ID:  <200710092139.36278.hselasky@c2i.net>
In-Reply-To: <dc2adf190710091038p36fa5009h299ecdb400581b87@mail.gmail.com>
References:  <dc2adf190710091038p36fa5009h299ecdb400581b87@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 09 October 2007, GAURAV GUPTA wrote:
>  Hi all,
>
> My name is tarru .i am trying to understand the usb call .
>
> and currently i got struck and i would like to know the difference
> between  functions.
>
>
> usbd_transfer()
>
> and
>
> usbd_do_request()
>
> are we doing anything different ? .i  confused since in both cases we are
> transferring/queering for data to usb device
>
> Please let me know if anybody can help on this
>
> Thanks,
>
> Tarru

Hi,

"usbd_do_request()" is a wrapper function for "usbd_transfer()" that does 
synchronous control transfers on endpoint zero only.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710092139.36278.hselasky>