public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH] change poll_events to 32 bits to cover EPOLLEXCLUSIVE
@ 2020-06-11  4:34 Jiufei Xue
  0 siblings, 0 replies; only message in thread
From: Jiufei Xue @ 2020-06-11  4:34 UTC (permalink / raw)
  To: io-uring; +Cc: axboe, joseph.qi

From: Jiufei Xue <[email protected]>

Signed-off-by: Jiufei Xue <[email protected]>
---
 man/io_uring_enter.2            | 2 +-
 src/include/liburing.h          | 2 +-
 src/include/liburing/io_uring.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/man/io_uring_enter.2 b/man/io_uring_enter.2
index 188398b..d0d5538 100644
--- a/man/io_uring_enter.2
+++ b/man/io_uring_enter.2
@@ -125,7 +125,7 @@ struct io_uring_sqe {
     union {
         __kernel_rwf_t  rw_flags;
         __u32    fsync_flags;
-        __u16    poll_events;
+        __u32    poll_events;
         __u32    sync_range_flags;
         __u32    msg_flags;
         __u32    timeout_flags;
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 0192b47..b1659cc 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -253,7 +253,7 @@ static inline void io_uring_prep_sendmsg(struct io_uring_sqe *sqe, int fd,
 }
 
 static inline void io_uring_prep_poll_add(struct io_uring_sqe *sqe, int fd,
-					  short poll_mask)
+					  unsigned poll_mask)
 {
 	io_uring_prep_rw(IORING_OP_POLL_ADD, sqe, fd, NULL, 0, 0);
 	sqe->poll_events = poll_mask;
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index 92c2269..afc7edd 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -31,7 +31,7 @@ struct io_uring_sqe {
 	union {
 		__kernel_rwf_t	rw_flags;
 		__u32		fsync_flags;
-		__u16		poll_events;
+		__u32		poll_events;
 		__u32		sync_range_flags;
 		__u32		msg_flags;
 		__u32		timeout_flags;
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-11  4:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-11  4:34 [PATCH] change poll_events to 32 bits to cover EPOLLEXCLUSIVE Jiufei Xue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox