From b88ae90528c6d142d6d4f15d9856f9bc0ae1761c Mon Sep 17 00:00:00 2001 From: wokron Date: Thu, 2 Jul 2026 15:01:12 +0800 Subject: [PATCH] use cqe->big_cqe instead of (cqe + 1) --- include/condy/cqe_handler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/condy/cqe_handler.hpp b/include/condy/cqe_handler.hpp index a0641347..13f64a9e 100644 --- a/include/condy/cqe_handler.hpp +++ b/include/condy/cqe_handler.hpp @@ -102,7 +102,7 @@ struct TxTimestampResult { /** * @brief The timestamp value. */ - io_timespec ts; // *(io_timespec *)(cqe + 1) + io_timespec ts; // *(io_timespec *)(cqe->big_cqe) }; /** @@ -120,7 +120,7 @@ struct TxTimestampCQEHandler { result.tstype = static_cast(cqe->flags >> IORING_TIMESTAMP_TYPE_SHIFT); result.hwts = cqe->flags & IORING_CQE_F_TSTAMP_HW; - result.ts = *reinterpret_cast(cqe + 1); + result.ts = reinterpret_cast(cqe->big_cqe); return {cqe->res, result}; } };