Extending termios VTIME semantics

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

 



I’m working on a platform where we’re using some very high-speed serial devices, and the inter-block spacing is in the tens of milliseconds.

I’d like to use VTIME but unfortunately it measures time in 100ms intervals, which is useless at higher speeds (115200baud means 1440 characters every VTIME tick).  That’s a long time.

I’d like to propose an extension, but wanted to ask the maintainers first about the feasibility before I spend too much time on it.

Not sure which bits in c_cflag are safe to use without stepping on CIBAUD.

Also, CFASTTICK only works if CONFIG_HZ is 100, 200, 300, 500, or 1000.

Not sure which drivers/tty/tty_ioctl.c function to enforce this check… tty_mode_ioctl() perhaps?

Anyway, this is what I have so far.  Am I on the right track?

Thanks,

-Philip



Attachment: fasttick.patch
Description: Binary data


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux