device/pipe: add nonblocking read/write and force write mode
The previous implementation will always blocks the reader/writer. However, at least FinSh would expect the device to be nonblocking --- read should return 0 when there is no data in it.
Showing
想要评论请 注册 或 登录