- From: Frank Mori Hess <fmhess_at_users.sourceforge.net>
- Date: Fri, 20 Dec 2002 11:07:38 -0600
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 19 December 2002 09:50 pm, Edwin du wrote: > My async->data address is 0x0, seems it's not allocated properly. > > I'm not sure how can I initialize it. Forget about async->data, it doesn't even exist anymore in cvs. > > In addtion, what is the difference between async->data and > async->prealloc_buf? prealloc_buf worked but I can't read from my > device file /dev/comedi0. You need to tell the buffer you have written data to it. The primatives are comedi_buf_write_alloc() (called before you write data) and comedi_buf_write_free() (called after you write data). Or, there are some functions like cfc_write_to_buffer() declared in comedi_fc.h which are slightly easier to use. - -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+A05d5vihyNWuA4URAmnoAJ9rGHUU0k2NY07amEUBd8b/swp7DgCgi1Mo txdEEwbcAs0OozCdy2tHDo4= =aeW6 -----END PGP SIGNATURE-----
Received on 2002-12-20Z17:07:38