Add support for IORING_REGISTER_PBUF_STATUS

Basic support for querying the provided ring buffer head, and a helper
that returns the number of available entries. Includes a basic test
case as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
5 files changed