exit: add internal include file with helpers
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Jul 2023 16:40:31 +0000 (10:40 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Sep 2023 18:03:50 +0000 (12:03 -0600)
commit2e521a2064bf8b26cf178c0f7644a70ed1a512fa
treec380528b697568b6cba061dd7d13292beca54ec3
parenteda7e9d409ce16960d5ed28bedf8a33b2667a93c
exit: add internal include file with helpers

Move struct wait_opts and waitid_info into kernel/exit.h, and include
function declarations for the recently added helpers. Make them
non-static as well.

This is in preparation for adding a waitid operation through io_uring.
With the abtracted helpers, this is now possible.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/exit.c
kernel/exit.h [new file with mode: 0644]