Am Dienstag, 24. April 2007 14:58 schrieb Wael Adel:
> Dear Oliver forgive me for my many questions but here are the

No problem. Only those who refuse to ask are foolish.

> modificaions that u adviced me to do but i think there is still
> something wrong because when the gadget sends "hello" for example to
> the host, my computer is hanging so what is the error ,i m gonna be
> made:
> 
> here is the last code for skel_read:
> 
> 
> static void skel_read_bulk_callback(struct urb *urb, struct pt_regs *regs)
> {
>         struct usb_skel *dev;
>         complete((struct completion *)urb->context);
>         dev = (struct usb_skel *)urb->context;
>         up(&dev->limit_sem);
> }

Sorry, I made a mistake. In the completion handler you need both the pointer
to dev and done. Consequently you need to pass a pointer to a struct that
contains them.

        HTH
                Oliver
-- 
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
This signature is a legal requirement

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to