Re: ioctl (command)values not clear

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 25, 2003 at 02:41:12AM -0500, Sriram N.S. wrote:
> Hi everyone,
> 
> Am in the process of implementing ioctls for a tty-driver. Any idea as
> to what values are used [when the driver routine is invoked] for the
> "command" argument in an ioctl call to get/set baud-rate,
> flow-control. Am unable to get the exact constant [among those defined
> in asm-i386/ioctl.h] corresponding to baud-rate/flow-control. Also how
> to manipulate the "arg" of ioctl to update the retrieved value of
> baud-rate [for example]. 

Linux Journal had a few articles a while back from some hack that
described the different tty ioctls and what is really needed to
implement a working tty driver.  They should be available online for
free now.

If you implement them, please to watch out for the new tiocmget and
tiocmset functions in the tty_driver structure for 2.5.  These prevent
the TIOCMGET and TIOCMSET (and family) ioctl commands from being sent to
the tty driver.

Hope this helps,

greg k-h
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux