how to implement ioctl ?

Stan zylog at club-internet.fr
Mon Dec 16 11:38:59 UTC 2002


Hi,

I don't use termios.
how to implement 'console_control' to do that:

ioctl(fd, MY_MODE_SETTING, my_struct_for_setting);
or
ioctl(fd, MY_MODE_GETTING, my_struct_for_getting);
...


and in console.c :

rtems_device_driver console_control( rtems_device_major_number major,
rtems_device_minor_number minor, void* arg)
{

...
 what to make here to recover the arguments?
...

    switch(mode){
        case MY_MODE_GETTING:
                ...
        break;
        case MY_MODE_SETTING:
                ...
        break;

    }


}



Thanks a lot.

        Stan .





More information about the users mailing list