On 09/29/2015 10:48 AM, Oleg Smolsky wrote:
Hi there! I am reading tcmu-design.txt and have a question about "dev_fd" used for kernel-/user-mode notifications. Can I use it in a non-blocking way? Specifically, would it work if I do the following: 1) fcntl(fd, ... | NONBLOCK); 2) ev.events = EPOLLIN; epoll_ctl(..., EPOLL_CTL_ADD, fd, &ev); If not, is there another way to achieve async notifications so that I don't waste a thread?
TCMU uses uio for this, and uio supports this usage, yes. Regards -- Andy -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html