Command in Kernel-Space

Hi,

Have a look at the mmap.c example. To read the data you can use
comedi_map(), comedi_get_buffer_offset(), comedi_mark_buffer_read().
It has worked for me.

Regards,

Andrés


> Subject: Command in Kernel-Space
> Date: Fri, 28 May 2004 12:23:57 +0200
> From: "Kirchschlager Patrick (PEA-FE2/BA-T)"
<Patrick.Kirchschlager_at_de.bosch.com>
> To: <comedi_at_comedi.org>
>
> This is a multi-part message in MIME format.
>
> ------=_NextPartTM-000-b3dc2302-b7d0-4439-9178-5c2703ce4e4a
> Content-Type: multipart/alternative;
> boundary="----_=_NextPart_001_01C4449D.E25E9215"
>
> ------_=_NextPart_001_01C4449D.E25E9215
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hello im Wrinting some Applications to control a X-Ray-Camera.
>
> Because of that I have to use some realtime-stuff.
> So I want to execute a commedi_command in kernel_space!
> But I got a problem! First I don't get known of if the
> command is really executed and furthermore
> I don't know how to read the data from the device, because
> read doesn't word in kernel_space. So I have so use something like
> the "memcpy" commands. But if I try, all the header files i have to =
> include
> produces compile errors over and over!=20
> (e.g. if I include comedidev.h)
> Has someone done something like that?
>
> Greetings
>
> Patrick
>

Received on 2004-05-28Z13:23:33