Controlling the RTS and DTR pins of a Linux Serial Port using ioctl() calls The C code uses ioctl() calls controls the logic levels of DTR and RTS pins of a Linux Serial Port. Tutorial Online tutorial for controlling the RTS and DTR pins of Linux Serial Port using C Complete Introduction to Serial Port Programming on Linux using C and termios struct for Beginners