Home
last modified time | relevance | path

Searched refs:epoll_params (Results 1 – 5 of 5) sorted by relevance

/linux-6.15/tools/testing/selftests/net/
H A Depoll_busy_poll.c30 struct epoll_params { struct
40 #define EPIOCSPARAMS _IOW(EPOLL_IOC_TYPE, 0x01, struct epoll_params) argument
47 struct epoll_params params; in FIXTURE()
81 memset(&self->params, 0, sizeof(struct epoll_params)); in TEST_F()
95 struct epoll_params params; in FIXTURE()
96 struct epoll_params *invalid_params; in FIXTURE()
156 self->invalid_params = (struct epoll_params *)0xdeadbeef; in TEST_F()
170 memset(&self->params, 0, sizeof(struct epoll_params)); in TEST_F()
259 self->invalid_params = (struct epoll_params *)0xdeadbeef; in TEST_F()
273 memset(&self->params, 0, sizeof(struct epoll_params)); in TEST_F()
[all …]
H A Dbusy_poller.c43 struct epoll_params { struct
53 #define EPIOCSPARAMS _IOW(EPOLL_IOC_TYPE, 0x01, struct epoll_params) argument
54 #define EPIOCGPARAMS _IOR(EPOLL_IOC_TYPE, 0x02, struct epoll_params)
262 struct epoll_params epoll_params = {0}; in run_poller() local
287 epoll_params.busy_poll_usecs = cfg_busy_poll_usecs; in run_poller()
288 epoll_params.busy_poll_budget = cfg_busy_poll_budget; in run_poller()
289 epoll_params.prefer_busy_poll = cfg_prefer_busy_poll; in run_poller()
290 epoll_params.__pad = 0; in run_poller()
306 if (ioctl(epfd, EPIOCSPARAMS, &epoll_params) == -1) in run_poller()
/linux-6.15/include/uapi/linux/
H A Deventpoll.h88 struct epoll_params { struct
98 #define EPIOCSPARAMS _IOW(EPOLL_IOC_TYPE, 0x01, struct epoll_params) argument
99 #define EPIOCGPARAMS _IOR(EPOLL_IOC_TYPE, 0x02, struct epoll_params)
/linux-6.15/fs/
H A Deventpoll.c507 struct epoll_params epoll_params; in ep_eventpoll_bp_ioctl() local
511 if (copy_from_user(&epoll_params, uarg, sizeof(epoll_params))) in ep_eventpoll_bp_ioctl()
515 if (epoll_params.__pad) in ep_eventpoll_bp_ioctl()
518 if (epoll_params.busy_poll_usecs > S32_MAX) in ep_eventpoll_bp_ioctl()
521 if (epoll_params.prefer_busy_poll > 1) in ep_eventpoll_bp_ioctl()
524 if (epoll_params.busy_poll_budget > NAPI_POLL_WEIGHT && in ep_eventpoll_bp_ioctl()
528 WRITE_ONCE(ep->busy_poll_usecs, epoll_params.busy_poll_usecs); in ep_eventpoll_bp_ioctl()
529 WRITE_ONCE(ep->busy_poll_budget, epoll_params.busy_poll_budget); in ep_eventpoll_bp_ioctl()
533 memset(&epoll_params, 0, sizeof(epoll_params)); in ep_eventpoll_bp_ioctl()
534 epoll_params.busy_poll_usecs = READ_ONCE(ep->busy_poll_usecs); in ep_eventpoll_bp_ioctl()
[all …]
/linux-6.15/Documentation/networking/
H A Dnapi.rst295 epoll_params``:, which user programs can define as follows:
299 struct epoll_params {
325 epoll_params`` can be set to 1 and the ``EPIOCSPARAMS`` ioctl can be issued to
333 in ``struct epoll_params`` and set on a specific epoll context using the ``EPIOCSPARAMS``