From 110a8e195e0a08782191ea3cfb5643e4d93eee5b Mon Sep 17 00:00:00 2001 From: sugarraysam Date: Tue, 30 Sep 2025 15:45:16 -0700 Subject: [PATCH] Add ability to clear flags. --- src/squeue.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/squeue.rs b/src/squeue.rs index 29b78f38..5ce7f485 100644 --- a/src/squeue.rs +++ b/src/squeue.rs @@ -328,6 +328,13 @@ impl Entry { self } + /// Clear the submission event's [flags](Flags). + #[inline] + pub fn clear_flags(mut self) -> Entry { + self.0.flags = 0; + self + } + /// Set the user data. This is an application-supplied value that will be passed straight /// through into the [completion queue entry](crate::cqueue::Entry::user_data). #[inline] @@ -382,6 +389,13 @@ impl Entry128 { self } + /// Clear the submission event's [flags](Flags). + #[inline] + pub fn clear_flags(mut self) -> Entry128 { + self.0 .0.flags = 0; + self + } + /// Set the user data. This is an application-supplied value that will be passed straight /// through into the [completion queue entry](crate::cqueue::Entry::user_data). #[inline]