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.
我有两个设备,一个是 pts ( /dev/pts/N),另一个是 socket( /path/to/socket)。我想无限读取pts并将其写入socket,并无限读取socket并写入pts。
/dev/pts/N
/path/to/socket
我现在正在做的是打开两者并在两个线程中创建一个读取循环,但是有没有更简单的管道方法可以在内核空间中进行一些工作?