diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-05-01 12:39:03 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-05-06 09:06:04 +0200 |
| commit | cc6d6663956d1ed5becb1f5f3cd53d3cd899fdf0 (patch) | |
| tree | aa150978ac624fcafc3be60f60c3d950a2deeec7 /src/lib/ssm/tests | |
| parent | c83fa890a0ac583959d9b7791333739b055c932c (diff) | |
| download | ouroboros-cc6d6663956d1ed5becb1f5f3cd53d3cd899fdf0.tar.gz ouroboros-cc6d6663956d1ed5becb1f5f3cd53d3cd899fdf0.zip | |
lib: Rename ssm_pk_buff_get_idx to ssm_pk_buff_get_offbe
The shared memory pool is now offset based instead of block
index-based like the old shm_rdrbuff allocator. This renames the API
more consistently. Also changes variables names to off instead of idx
for consistency.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/ssm/tests')
| -rw-r--r-- | src/lib/ssm/tests/pool_sharding_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ssm/tests/pool_sharding_test.c b/src/lib/ssm/tests/pool_sharding_test.c index c53105e3..f2810c53 100644 --- a/src/lib/ssm/tests/pool_sharding_test.c +++ b/src/lib/ssm/tests/pool_sharding_test.c @@ -261,7 +261,7 @@ static int test_fallback_stealing(void) /* Free them all - they go to local_shard */ for (i = 0; i < total_blocks / 2; i++) { - size_t off = ssm_pk_buff_get_idx(spbs[i]); + size_t off = ssm_pk_buff_get_off(spbs[i]); if (ssm_pool_remove(pool, off) != 0) { printf("Remove %zu failed.\n", i); free(spbs); @@ -299,7 +299,7 @@ static int test_fallback_stealing(void) /* Now all allocated blocks are in use again */ /* Cleanup - free all allocated blocks */ for (i = 0; i < total_blocks / 2; i++) { - size_t off = ssm_pk_buff_get_idx(spbs[i]); + size_t off = ssm_pk_buff_get_off(spbs[i]); ssm_pool_remove(pool, off); } |
