- From: Calin A. Culianu <calin_at_ajvar.org>
- Date: Wed, 19 Mar 2003 14:15:10 -0500 (EST)
Ok this is because I gave you bad advice. So replace DEFAULT_COMEDI_MINOR
(or define it) as "/dev/comedi0". Also create a pointer to comedi_t
(comedi_t *) variable and call that.. i dunno 'dev'. Assign the return
value of comedi_open() to 'dev' and use dev in subsequent places where
previously I said you should use DEFAULT_COMEDI_MINOR...
so it's roughly:
comedi_t *dev;
dev =
comedi_open(DEFAULT_COMEDI_MINOR /* this is really "/dev/comedi0" */,
...);
if (!dev) {
... /* some error condition here */
}
/* ... */
/* example usage of 'dev' */
comedi_find_subdevice_by_type(dev, ...);
Is this clear?
-Calin
On Wed, 19 Mar
2003, [iso-8859-1] siddharth kulkarni wrote:
> HI All,
> I made mistake that i don't noticed that the error has
> been changed to "Unable to handle kernel paging
> request at virtual address 61642078"
> I m extreamly sorry for this and expecting that all of
> u will forgive me for this.
> -SIDDHARTH
> --- siddharth suhas kulkarni
> <siddharthsk_at_rediffmail.com> wrote: > Hello All,
> > I don't get what exactly Frank Hess wan'ts to say.
> > And I tried the
> > module by changing the DEFAULT_COMEDI_MINOR by
> > "/dev/comedi0",
> > but it gives the same error only by changing the
> > address of
> > virtual memory to a big number.
> > I am also trying to debug the problem, But till
> > now I don't
> > find any.
> > thanks to all.
> > waiting for solution.
> > with warm regards
> > -SIDDHARTH
> >
> > > > Ok, I looked at the code I wrote. The URL is
> > > >
> >
> https://cvs.comedi.org/pipermail/comedi/2002-May/003066.html.
> >
> > >I see th=
> > >at
> > > > it is using the old-style comedi_open(). Newer
> > versions of
> > >comedi in t=
> > >he
> > > > kernel take _strings_ rather than actual comedi
> > minor numbers.
> > >So you
> > >
> > >No, they use the token returned by comedi_open(),
> > like the user
> > >space lib=
> > >rary=20
> > >does. comedi_open() is the only one that takes a
> > string. =20
> > >
> > > > have to replace all instances of
> > DEFAULT_COMEDI_MINOR with
> > >"/dev/comedi=
> > >0"
> > > > in the code, or, alternatively, edit rt_module.h
> > and change
> > > > DEFAULT_COMEDI_MINOR from 0 to "/dev/comedi0".
> > > >
> > > > -Calin
> > > >
> > >
> > >- --=20
> > >Frank
> >
> >
> > _______________________________________________________
>
> ________________________________________________________________________
> Missed your favourite TV serial last night? Try the new, Yahoo! TV.
> visit http://in.tv.yahoo.com
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>
Received on 2003-03-19Z19:15:10