Home
last modified time | relevance | path

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

/linux/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
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/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/fs/
H A Deventpoll.c508 struct epoll_params epoll_params; in ep_eventpoll_bp_ioctl() local
512 if (copy_from_user(&epoll_params, uarg, sizeof(epoll_params))) in ep_eventpoll_bp_ioctl()
516 if (epoll_params.__pad) in ep_eventpoll_bp_ioctl()
519 if (epoll_params.busy_poll_usecs > S32_MAX) in ep_eventpoll_bp_ioctl()
522 if (epoll_params.prefer_busy_poll > 1) in ep_eventpoll_bp_ioctl()
525 if (epoll_params.busy_poll_budget > NAPI_POLL_WEIGHT && in ep_eventpoll_bp_ioctl()
529 WRITE_ONCE(ep->busy_poll_usecs, epoll_params.busy_poll_usecs); in ep_eventpoll_bp_ioctl()
530 WRITE_ONCE(ep->busy_poll_budget, epoll_params.busy_poll_budget); in ep_eventpoll_bp_ioctl()
531 WRITE_ONCE(ep->prefer_busy_poll, epoll_params.prefer_busy_poll); in ep_eventpoll_bp_ioctl()
534 memset(&epoll_params, 0, sizeof(epoll_params)); in ep_eventpoll_bp_ioctl()
[all …]