Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/net/
Depoll_busy_poll.c30 struct epoll_params { struct
40 #define EPIOCSPARAMS _IOW(EPOLL_IOC_TYPE, 0x01, struct epoll_params) argument
41 #define EPIOCGPARAMS _IOR(EPOLL_IOC_TYPE, 0x02, struct epoll_params)
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()
[all …]
/linux-6.12.1/include/uapi/linux/
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.12.1/fs/
Deventpoll.c503 struct epoll_params epoll_params; in ep_eventpoll_bp_ioctl() local
507 if (copy_from_user(&epoll_params, uarg, sizeof(epoll_params))) in ep_eventpoll_bp_ioctl()
511 if (epoll_params.__pad) in ep_eventpoll_bp_ioctl()
514 if (epoll_params.busy_poll_usecs > S32_MAX) in ep_eventpoll_bp_ioctl()
517 if (epoll_params.prefer_busy_poll > 1) in ep_eventpoll_bp_ioctl()
520 if (epoll_params.busy_poll_budget > NAPI_POLL_WEIGHT && in ep_eventpoll_bp_ioctl()
524 WRITE_ONCE(ep->busy_poll_usecs, epoll_params.busy_poll_usecs); in ep_eventpoll_bp_ioctl()
525 WRITE_ONCE(ep->busy_poll_budget, epoll_params.busy_poll_budget); in ep_eventpoll_bp_ioctl()
526 WRITE_ONCE(ep->prefer_busy_poll, epoll_params.prefer_busy_poll); in ep_eventpoll_bp_ioctl()
529 memset(&epoll_params, 0, sizeof(epoll_params)); in ep_eventpoll_bp_ioctl()
[all …]