1 Reply Latest reply on Jun 30, 2014 1:36 PM by kevin_intel

    How to use termios and ioctl functions in kernel module?

    dasan

      I wrote a kernel module for a touch screen monitor and earlier I used inputattach(written in userspace) to open the serial port, set baudrate,control flags,line discipline etc.,

      But now I want to implement the functionalities of inputattach directly in my driver as I dont want to trigger my driver from an userspace program i.e inputattch.

      But I cant able to set c_ispeed,c_ospeed,c_cflag,c_iflag, line dicipline, etc., in kernel space. Is there any solution to set baudrate,line discipline etc., by only using my kernel module?