summaryrefslogtreecommitdiff
path: root/test/rw_merge_test.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-04-10 16:39:38 -0600
committerJens Axboe <axboe@kernel.dk>2021-04-10 16:39:38 -0600
commitea0fd51b78b3c089add37e8c4ee61abd460beb7a (patch)
treed9891448925c7d77de78047881d770e832876aab /test/rw_merge_test.c
parentd3eb6af47886656e811e8f4e274ac361d0efa5bf (diff)
downloadliburing-mlock-size.tar.gz
liburing-mlock-size.tar.bz2
setup: provide helpers to inquire about necessary mlock sizesmlock-size
5.12 and up will not require rlimit memlock allocations, but older ones do. It can be hard for applications to know how much they need without trial and error, so provide a set of helpers for them to query it instead. It's a bit ugly as it's mostly duplication of what the kernel does, but as that code is now static and won't be updated as no new kernels require memlock, that's probably not a huge issue. Fixes: https://github.com/axboe/liburing/issues/246 Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/rw_merge_test.c')
0 files changed, 0 insertions, 0 deletions