From: Haiyue Wang <haiyue.wang@cloudprime.ai>
To: io-uring@vger.kernel.org
Cc: Haiyue Wang <haiyue.wang@cloudprime.ai>
Subject: [PATCH liburing v1 0/6] Add uring_ptr_to_u64() helper to convert ptr to u64
Date: Wed, 18 Jun 2025 15:49:15 +0800 [thread overview]
Message-ID: <05EE29151DC406FF+20250618075056.142118-1-haiyue.wang@cloudprime.ai> (raw)
Instead of '(__u64) (unsigned long) ptr' by hand, define a helper
function to do so.
Haiyue Wang (6):
Add uring_ptr_to_u64() helper
liburing: use uring_ptr_to_u64() helper to convert ptr to u64
examples/reg-wait: use uring_ptr_to_u64() helper to convert ptr to u64
examples/zcrx: use uring_ptr_to_u64() helper to convert ptr to u64
test/reg-wait: use uring_ptr_to_u64() helper to convert ptr to u64
test/zcrx: use uring_ptr_to_u64() helper to convert ptr to u64
examples/reg-wait.c | 4 ++--
examples/zcrx.c | 8 ++++----
src/include/liburing.h | 9 +++++++--
test/reg-wait.c | 24 +++++++++++------------
test/zcrx.c | 44 +++++++++++++++++++++---------------------
5 files changed, 47 insertions(+), 42 deletions(-)
--
2.49.0
reply other threads:[~2025-06-18 7:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=05EE29151DC406FF+20250618075056.142118-1-haiyue.wang@cloudprime.ai \
--to=haiyue.wang@cloudprime.ai \
--cc=io-uring@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox