[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RTEMS device driver ioctl argument?
- Date: Wed, 25 Mar 2009 19:04:37 -0700
- From: antispam21 at verizon.net (mike)
- Subject: RTEMS device driver ioctl argument?
Hi all,
When we call RTEMS device driver function ioctl(fd, a, b), it gets to
the driver ioctl entry point with 3 arguments: major, minor, arg. With
'arg' a pointer to rtems_libio_ioctl_args_t struct:
typedef struct {
rtems_libio_t *iop;
uint32_t command;
void *buffer;
uint32_t ioctl_return;
} rtems_libio_ioctl_args_t;
with 'a' in 'command', 'b' in '*buffer'.
The questions are:
- what's 'iop'?
- is the error code supposed to be returned in 'ioctl_return'? If yes,
how does the caller retrieve it?
Thanks.
-mike-