Get the raw file descriptor for registration with an event loop. The caller can register this fd with: - Tokio: `AsyncFd::new()` - Glommio: `GlommioDma::from_raw_fd()` or similar - io_uring: `IORING_OP_READ` on the fd
(&self)
| 99 | /// - Glommio: `GlommioDma::from_raw_fd()` or similar |
| 100 | /// - io_uring: `IORING_OP_READ` on the fd |
| 101 | pub fn as_fd(&self) -> RawFd { |
| 102 | self.fd.as_raw_fd() |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | // SAFETY: eventfd is a kernel object. The fd can be shared across threads. |
no test coverage detected