Lines Matching refs:args

112 linux_epoll_create(struct thread *td, struct linux_epoll_create_args *args)  in linux_epoll_create()  argument
119 if (args->size <= 0) in linux_epoll_create()
127 linux_epoll_create1(struct thread *td, struct linux_epoll_create1_args *args) in linux_epoll_create1() argument
131 if ((args->flags & ~(LINUX_O_CLOEXEC)) != 0) in linux_epoll_create1()
135 if ((args->flags & LINUX_O_CLOEXEC) != 0) in linux_epoll_create1()
238 struct epoll_copyout_args *args; in epoll_kev_copyout() local
242 args = (struct epoll_copyout_args*) arg; in epoll_kev_copyout()
248 error = copyout(eep, args->leventlist, count * sizeof(*eep)); in epoll_kev_copyout()
250 args->leventlist += count; in epoll_kev_copyout()
251 args->count += count; in epoll_kev_copyout()
252 } else if (args->error == 0) in epoll_kev_copyout()
253 args->error = error; in epoll_kev_copyout()
268 struct epoll_copyin_args *args; in epoll_kev_copyin() local
270 args = (struct epoll_copyin_args*) arg; in epoll_kev_copyin()
272 memcpy(kevp, args->changelist, count * sizeof(*kevp)); in epoll_kev_copyin()
273 args->changelist += count; in epoll_kev_copyin()
283 linux_epoll_ctl(struct thread *td, struct linux_epoll_ctl_args *args) in linux_epoll_ctl() argument
296 if (args->op != LINUX_EPOLL_CTL_DEL) { in linux_epoll_ctl()
297 error = copyin(args->event, &le, sizeof(le)); in linux_epoll_ctl()
302 error = fget(td, args->epfd, in linux_epoll_ctl()
312 error = fget(td, args->fd, in linux_epoll_ctl()
325 if (args->op != LINUX_EPOLL_CTL_DEL) { in linux_epoll_ctl()
326 error = epoll_to_kevent(td, args->fd, &le, kev, &nchanges); in linux_epoll_ctl()
331 switch (args->op) { in linux_epoll_ctl()
333 error = epoll_delete_all_events(td, epfp, args->fd); in linux_epoll_ctl()
339 if (epoll_fd_registered(td, epfp, args->fd)) { in linux_epoll_ctl()
347 error = epoll_delete_all_events(td, epfp, args->fd); in linux_epoll_ctl()
456 linux_epoll_wait(struct thread *td, struct linux_epoll_wait_args *args) in linux_epoll_wait() argument
459 return (linux_epoll_wait_common(td, args->epfd, args->events, in linux_epoll_wait()
460 args->maxevents, args->timeout, NULL)); in linux_epoll_wait()
465 linux_epoll_pwait(struct thread *td, struct linux_epoll_pwait_args *args) in linux_epoll_pwait() argument
470 error = linux_copyin_sigset(td, args->mask, sizeof(l_sigset_t), in linux_epoll_pwait()
475 return (linux_epoll_wait_common(td, args->epfd, args->events, in linux_epoll_pwait()
476 args->maxevents, args->timeout, pmask)); in linux_epoll_pwait()
481 linux_epoll_pwait2_64(struct thread *td, struct linux_epoll_pwait2_64_args *args) in linux_epoll_pwait2_64() argument
487 error = linux_copyin_sigset(td, args->mask, sizeof(l_sigset_t), in linux_epoll_pwait2_64()
492 if (args->timeout) { in linux_epoll_pwait2_64()
493 error = linux_get_timespec64(&ts, args->timeout); in linux_epoll_pwait2_64()
500 return (linux_epoll_wait_ts(td, args->epfd, args->events, in linux_epoll_pwait2_64()
501 args->maxevents, tsa, pmask)); in linux_epoll_pwait2_64()
505 linux_epoll_pwait2(struct thread *td, struct linux_epoll_pwait2_args *args) in linux_epoll_pwait2() argument
511 error = linux_copyin_sigset(td, args->mask, sizeof(l_sigset_t), in linux_epoll_pwait2()
516 if (args->timeout) { in linux_epoll_pwait2()
517 error = linux_get_timespec(&ts, args->timeout); in linux_epoll_pwait2()
524 return (linux_epoll_wait_ts(td, args->epfd, args->events, in linux_epoll_pwait2()
525 args->maxevents, tsa, pmask)); in linux_epoll_pwait2()
577 linux_eventfd(struct thread *td, struct linux_eventfd_args *args) in linux_eventfd() argument
582 ae.initval = args->initval; in linux_eventfd()
588 linux_eventfd2(struct thread *td, struct linux_eventfd2_args *args) in linux_eventfd2() argument
593 if ((args->flags & ~(LINUX_O_CLOEXEC | LINUX_O_NONBLOCK | in linux_eventfd2()
597 if ((args->flags & LINUX_O_CLOEXEC) != 0) in linux_eventfd2()
599 if ((args->flags & LINUX_O_NONBLOCK) != 0) in linux_eventfd2()
601 if ((args->flags & LINUX_EFD_SEMAPHORE) != 0) in linux_eventfd2()
606 ae.initval = args->initval; in linux_eventfd2()
611 linux_timerfd_create(struct thread *td, struct linux_timerfd_create_args *args) in linux_timerfd_create() argument
616 error = linux_to_native_clockid(&clockid, args->clockid); in linux_timerfd_create()
620 if ((args->flags & LINUX_TFD_CLOEXEC) != 0) in linux_timerfd_create()
622 if ((args->flags & LINUX_TFD_NONBLOCK) != 0) in linux_timerfd_create()
629 linux_timerfd_gettime(struct thread *td, struct linux_timerfd_gettime_args *args) in linux_timerfd_gettime() argument
635 error = kern_timerfd_gettime(td, args->fd, &ots); in linux_timerfd_gettime()
641 error = copyout(&lots, args->old_value, sizeof(lots)); in linux_timerfd_gettime()
647 linux_timerfd_settime(struct thread *td, struct linux_timerfd_settime_args *args) in linux_timerfd_settime() argument
653 error = copyin(args->new_value, &lots, sizeof(lots)); in linux_timerfd_settime()
659 if (args->old_value == NULL) in linux_timerfd_settime()
660 error = kern_timerfd_settime(td, args->fd, args->flags, &nts, NULL); in linux_timerfd_settime()
662 error = kern_timerfd_settime(td, args->fd, args->flags, &nts, &ots); in linux_timerfd_settime()
663 if (error == 0 && args->old_value != NULL) { in linux_timerfd_settime()
666 error = copyout(&lots, args->old_value, sizeof(lots)); in linux_timerfd_settime()
674 linux_timerfd_gettime64(struct thread *td, struct linux_timerfd_gettime64_args *args) in linux_timerfd_gettime64() argument
680 error = kern_timerfd_gettime(td, args->fd, &ots); in linux_timerfd_gettime64()
686 error = copyout(&lots, args->old_value, sizeof(lots)); in linux_timerfd_gettime64()
692 linux_timerfd_settime64(struct thread *td, struct linux_timerfd_settime64_args *args) in linux_timerfd_settime64() argument
698 error = copyin(args->new_value, &lots, sizeof(lots)); in linux_timerfd_settime64()
704 if (args->old_value == NULL) in linux_timerfd_settime64()
705 error = kern_timerfd_settime(td, args->fd, args->flags, &nts, NULL); in linux_timerfd_settime64()
707 error = kern_timerfd_settime(td, args->fd, args->flags, &nts, &ots); in linux_timerfd_settime64()
708 if (error == 0 && args->old_value != NULL) { in linux_timerfd_settime64()
711 error = copyout(&lots, args->old_value, sizeof(lots)); in linux_timerfd_settime64()