Lines Matching defs:napi
4 #include "napi.h"
37 /* napi approximating usecs, reverse busy_loop_current_time */
139 /* Uses an absolute deadline, so the napi loop can be re-entered */
234 * io_napi_init() - Init napi settings
237 * Init napi settings in the io-uring context.
251 * io_napi_free() - Deallocate napi
254 * Free the napi list and the hash table in the io-uring context.
269 struct io_uring_napi *napi)
271 switch (napi->op_param) {
281 napi->busy_poll_to = min(10000, napi->busy_poll_to);
282 WRITE_ONCE(ctx->napi_busy_poll_dt, napi->busy_poll_to * NSEC_PER_USEC);
283 WRITE_ONCE(ctx->napi_prefer_busy_poll, !!napi->prefer_busy_poll);
284 WRITE_ONCE(ctx->napi_track_mode, napi->op_param);
289 * io_napi_register() - Register napi with io-uring
293 * Register napi in the io-uring context.
302 struct io_uring_napi napi;
306 if (copy_from_user(&napi, arg, sizeof(napi)))
308 if (napi.pad[0] || napi.pad[1] || napi.resv)
314 switch (napi.opcode) {
316 return io_napi_register_napi(ctx, &napi);
320 return __io_napi_add_id(ctx, napi.op_param,
325 return __io_napi_del_id(ctx, napi.op_param);
332 * io_napi_unregister() - Unregister napi with io-uring
336 * Unregister napi. If arg has been specified copy the busy poll timeout and
385 * Splice of the napi list and execute the napi busy poll loop.