On 04/05/2005 21:37, David Brownell wrote:
On Wednesday 04 May 2005 12:19 pm, Roman Kagan wrote:

struct urb {
        /* private, usb core and host controller only fields in the urb */
        ...
        struct list_head urb_list;      /* list pointer to all active urbs */
        ...
};

Is it safe to use it for driver's purposes when the driver owns the urb,
that is, starting from the completion routine until the urb is submitted
with usb_submit_urb()?

Right now, it should be.

In fact I'm not sure why it ever got called "private" to usbcore/hcds.
I thought the idea was that it should be like urb->status, reserved for
whoever controls the URB.

The documentation comment header block says:

/**
 * struct urb - USB Request Block
 * @urb_list: For use by current owner of the URB.

--
-=( Ian Abbott @ MEV Ltd.    E-mail: <[EMAIL PROTECTED]>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-


------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to