TCMU and non-blocking FDs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

Thanks!
Oleg.
--
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



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux