diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-03-08 20:06:53 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-03-08 20:08:06 -0800 |
commit | 8bb8b74db9cf1c527152118b421d50e191bc214d (patch) | |
tree | 85f1a1043637e363cbfdab83b89f7380db1d3cd1 | |
parent | 87ce3470bab09aa2d917fecd7401b9dfe09905d2 (diff) |
iou: s/entries/n_entries/ in iou_resize()
Mechanical rename for clarity and consistency sake
-rw-r--r-- | src/iou.c | 8 | ||||
-rw-r--r-- | src/iou.h | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -423,7 +423,7 @@ int iou_quit(iou_t *iou) } -/* Resize the underlying io_uring to entries. +/* Resize the underlying io_uring to n_entries. * * This can only be done when there's nothing queued or submitted, since * it's essentially tearing down and recreating everything including the @@ -434,15 +434,15 @@ int iou_quit(iou_t *iou) * bootstrap you learn necessary depths to accomodate subsequent operations * and need to resize accordingly. */ -int iou_resize(iou_t *iou, unsigned entries) +int iou_resize(iou_t *iou, unsigned n_entries) { assert(iou); - assert(entries); + assert(n_entries); assert(!(iou->n_issued + iou->n_queued + iou->n_submitted)); io_uring_queue_exit(&iou->ring); - return io_uring_queue_init(entries, &iou->ring, 0); + return io_uring_queue_init(n_entries, &iou->ring, 0); } @@ -34,7 +34,7 @@ void iou_op_queue(iou_t *iou, iou_op_t *op, int (*cb)(void *cb_data), void *cb_d int iou_flush(iou_t *iou); int iou_run(iou_t *iou); int iou_quit(iou_t *iou); -int iou_resize(iou_t *iou, unsigned entries); +int iou_resize(iou_t *iou, unsigned n_entries); struct io_uring * iou_ring(iou_t *iou); int iou_async(iou_t *iou, int (*async_cb)(void *async_cb_data), void *async_cb_data, int (*completion_cb)(void *completion_cb_data), void *completion_cb_data); |