Lines Matching refs:args

219 linux_epoll_create(struct thread *td, struct linux_epoll_create_args *args)
223 * args->size is unused. Linux just tests it
226 if (args->size <= 0)
233 linux_epoll_create1(struct thread *td, struct linux_epoll_create1_args *args)
237 if ((args->flags & ~(LINUX_O_CLOEXEC)) != 0)
241 if ((args->flags & LINUX_O_CLOEXEC) != 0)
333 struct epoll_copyout_args *args;
339 args = (struct epoll_copyout_args*) arg;
342 pem = pem_find(args->p);
358 error = copyout(eep, args->leventlist, count * sizeof(*eep));
360 args->leventlist += count;
361 args->count += count;
362 } else if (args->error == 0)
363 args->error = error;
378 struct epoll_copyin_args *args;
380 args = (struct epoll_copyin_args*) arg;
382 memcpy(kevp, args->changelist, count * sizeof(*kevp));
383 args->changelist += count;
393 linux_epoll_ctl(struct thread *td, struct linux_epoll_ctl_args *args)
407 if (args->op != LINUX_EPOLL_CTL_DEL) {
408 error = copyin(args->event, &le, sizeof(le));
413 error = fget(td, args->epfd,
421 error = fget(td, args->fd, cap_rights_init(&rights, CAP_POLL_EVENT), &fp);
433 switch (args->op) {
440 error = epoll_delete_all_events(td, epfp, args->fd);
451 error = epoll_delete_all_events(td, epfp, args->fd);
459 error = epoll_to_kevent(td, epfp, args->fd, &le, &kev_flags,
464 epoll_fd_install(td, args->fd, le.data);
550 linux_epoll_wait(struct thread *td, struct linux_epoll_wait_args *args)
553 return (linux_epoll_wait_common(td, args->epfd, args->events,
554 args->maxevents, args->timeout, NULL));
558 linux_epoll_pwait(struct thread *td, struct linux_epoll_pwait_args *args)
564 if (args->mask != NULL) {
565 error = copyin(args->mask, &lmask, sizeof(l_sigset_t));
572 return (linux_epoll_wait_common(td, args->epfd, args->events,
573 args->maxevents, args->timeout, pmask));
647 linux_eventfd(struct thread *td, struct linux_eventfd_args *args)
650 return (eventfd_create(td, args->initval, 0));
654 linux_eventfd2(struct thread *td, struct linux_eventfd2_args *args)
657 if ((args->flags & ~(LINUX_O_CLOEXEC|LINUX_O_NONBLOCK|LINUX_EFD_SEMAPHORE)) != 0)
660 return (eventfd_create(td, args->initval, args->flags));