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.
2 つのデバイスがあり、1 つは pts ( /dev/pts/N)、もう 1 つは socket( /path/to/socket) です。私はptsを無限に読んでそれをソケットに書き、無限にソケットを読んでptsに書きたいと思っています。
/dev/pts/N
/path/to/socket
私が今行っているのは、両方を開いて2つのスレッドで読み取りループを作成することですが、カーネル空間でいくつかの作業を行うパイプを使用した簡単な方法はありますか?