- From: Calin A. Culianu <calin_at_ajvar.org>
- Date: Wed, 19 Mar 2003 14:12:23 -0500 (EST)
On Sat, 15 Mar 2003, Frank Mori Hess wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Saturday 15 March 2003 08:02 am, Calin A. Culianu wrote: > > Ok, I looked at the code I wrote. The URL is > > https://cvs.comedi.org/pipermail/comedi/2002-May/003066.html. I see that > > it is using the old-style comedi_open(). Newer versions of comedi in the > > kernel take _strings_ rather than actual comedi minor numbers. So you > > No, they use the token returned by comedi_open(), like the user space library > does. comedi_open() is the only one that takes a string. Well I meant for comedi_open().. but yeah he needs to use the comedi_t thing returned by comedi_open for most calls except the one to comedi_open.. ok so I erred in that I made a mistake in reading his code.. he should replace DEFAULT_COMEDI_MINOR with "/dev/comedi0" in the comedi_open() call, and replace it with the thing returned by comedi_open() in subsequent calls.. > > > have to replace all instances of DEFAULT_COMEDI_MINOR with "/dev/comedi0" > > in the code, or, alternatively, edit rt_module.h and change > > DEFAULT_COMEDI_MINOR from 0 to "/dev/comedi0". > > > > -Calin > > > > - -- > Frank > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE+c1I65vihyNWuA4URAsUqAJ94Kaceaw/L6W1BKCi+18kLefHZzACg50IG > yJk767u5npKTeub4lMl2q7k= > =3CbE > -----END PGP SIGNATURE----- > > _______________________________________________ > comedi mailing list > comedi_at_comedi.org > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi >
Received on 2003-03-19Z19:12:23