linux-stable/Documentation/userspace-api/ioctl
Joe Damato 18e2bf0edf eventpoll: Add epoll ioctl for epoll_params
Add an ioctl for getting and setting epoll_params. User programs can use
this ioctl to get and set the busy poll usec time, packet budget, and
prefer busy poll params for a specific epoll context.

Parameters are limited:
  - busy_poll_usecs is limited to <= s32_max
  - busy_poll_budget is limited to <= NAPI_POLL_WEIGHT by unprivileged
    users (!capable(CAP_NET_ADMIN))
  - prefer_busy_poll must be 0 or 1
  - __pad must be 0

Signed-off-by: Joe Damato <jdamato@fastly.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-02-14 11:01:01 +00:00
..
cdrom.rst cdrom: mark CDROMGETSPINDOWN/CDROMSETSPINDOWN obsolete 2022-05-15 18:31:28 -06:00
hdio.rst ide: remove the legacy ide driver 2021-06-16 08:53:58 -06:00
index.rst docs: Move the user-space ioctl() docs to userspace-api 2019-10-10 11:21:54 -06:00
ioctl-decoding.rst docs: Move the user-space ioctl() docs to userspace-api 2019-10-10 11:21:54 -06:00
ioctl-number.rst eventpoll: Add epoll ioctl for epoll_params 2024-02-14 11:01:01 +00:00