Device driver problem structure has no member named `nbytes'

bridged with qdn.public.qnxrtp.powerpc
Post Reply
Kate Alhola

Device driver problem structure has no member named `nbytes'

Post by Kate Alhola » Mon Feb 11, 2002 12:36 pm

Sorry for crossposting but i don't know what is most appropriate
newsgroup for device driver coding question.

I try compile my first device driver for qnx/ppc. I use
as model just sample code from "writting resource manager".

When i compile io_read function, i get

devc_lcd.c:115: structure has no member named `nbytes'

from line

nleft = ocb->attr->nbytes - ocb->offset;

That is directly from original example. That is only error that i gor
from the compilation. When i look #include <sys/iofunc.h> the nbytes
is defined there but inside about unreadable #if construction.
In anyhow it does reach any #error directives.

In beginning i have following includes:

#include
"externs.h"
#include
<errno.h>
#include
<stdio.h>
#include
<stddef.h>
#include
<stdlib.h>
#include
<unistd.h>
#include
<sys/iomsg.h>
#include
<sys/iofunc.h>
#include
<sys/dispatch.h>
#include
"netcomm.h"
#include
"mpc860t.h"



Kate

--
+==================================================================+
! Kate Marika Alhola Internet Technologies International Oy !
! kate@iti.fi Phone +358 400 740701 Fax +358 9 8138715 !
! kate@iki.fi http://www.iti.fi http://www.iki.fi/kate !
+==================================================================+

Post Reply

Return to “qdn.public.qnxrtp.powerpc”