Re: USB driver

Frank,

>You could alternatively set dev->private to NULL in detach.  That would 
>prevent comedi from trying to free it.
>  
>
Done so. Works.

>I'm not sure what you are talking about here.  comedi_request_irq() exists 
>only for the sake of making interrupt handlers RT.  You can't make the usb 
>systems interrupts RT so it doesn't matter.
>  
>
you are right.

>  
>
>>3) I cannot use the macro COMEDI_INITCLEANUP. The reason is that I have
>>to register the usb subsystem and the comedi driver. Can you imagine a
>>macro which can call an additional init and cleanup function? It would
>>be nice having that.
>>    
>>
>
>You dont have to use COMEDI_INITCLEANUP, its just there for convenience.
>  
>
I've seen that the macro which checks the driver gives somthing like a 
warning...

>A pointer and length are passed as part of the options array during attach.  
>See for example the daqboard2000 driver.  I'm noticing a problem though, the 
>options array needs to be changed to type long instead of int, since int's 
>aren't guaranteed to be large enough to hold pointers.
>  
>
Works fine. Now I can remove the /dev/usb/ez* stuff. The code from the 
daqboard2000 driver was very helpful. Thank you for the tip.

/Bernd

>- -- 
>Frank
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.6 (GNU/Linux)
>Comment: For info see http://www.gnupg.org
>
>iD8DBQE+uSW+5vihyNWuA4URApvzAKCSVgxr2a2xVmOjVhiYu6+yq4iVLwCdGD6C
>Qd2jWeQkRS2PrXcZCdhVubQ=
>=bKMB
>-----END PGP SIGNATURE-----
>
>
>_______________________________________________
>comedi mailing list
>comedi_at_comedi.org
>https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>  
>

-- 
http://www.cn.stir.ac.uk/~bp1/
mailto:bp1_at_cn.stir.ac.uk

Received on 2003-05-08Z00:01:04