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?
Let me help you with this.
Please note there is a special community where most of the users are developers and programmers. I recommend you posting here the information: