diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-03-08 20:00:41 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-03-08 20:00:41 -0800 |
commit | 87ce3470bab09aa2d917fecd7401b9dfe09905d2 (patch) | |
tree | ef2857b0d5ac3d3e31767c01532ee882c01fdf12 | |
parent | 10b241f9b04e266fd4d7c76aefd70d9a33af9633 (diff) |
iou: update stale iou_op_new() comment
At one time the cqe pointer was placed in the op, but at some point
the cqe became "seen" before calling op->cb() to make the cqe
available while op->cb() executed. None of my existing code required
more than the result code which is already copied into iou_op_t by
this point, so the cqe wasn't needed.
-rw-r--r-- | src/iou.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -239,9 +239,9 @@ iou_t * iou_free(iou_t *iou) /* allocates an op, which wraps an io_uring sqe, result, and associated closure */ /* when an op completes, its result member is populated from the cqe, and its - * closure supplied when queued is called. If the closure must access the cqe, - * it should bind the op by the submission time, then it may access the - * op->cqe member. + * callback supplied when queued is called with its accompanying + * cb_data pointer. Callback access to the raw cqe isn't currently + * facilitated. */ iou_op_t * iou_op_new(iou_t *iou) { |