Uring.registerRestrictions

Register a feature whitelist. Attempting to call any operations which are not whitelisted will result in an error.

Note: Can only be called once to prevent other code from bypassing the whitelist.

struct Uring
nothrow @nogc @trusted
int
registerRestrictions
(
scope ref io_uring_restriction res
)

Return Value

Type: int

On success, returns 0. On error, -errno is returned.

Note: Available from Linux 5.10

Meta