Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个问题与pty终端数据包模式TIOCPKT有关
linux启用方式是什么packet mode?I_PUSH传入ioctl函数时我找不到工作。
linux
packet mode
I_PUSH
ioctl
TIOCPKTtty_ioctl(4)根据手册页,这正是您想要的:参数是一个指向整数的指针,该整数非零以启用数据包模式,或零以禁用它。
TIOCPKT
tty_ioctl(4)