Lines Matching defs:uap
105 linux_timer_create(struct thread *td, struct linux_timer_create_args *uap)
111 if (uap->evp == NULL) {
114 error = copyin(uap->evp, &l_ev, sizeof(l_ev));
122 error = linux_convert_l_clockid(&uap->clock_id);
125 error = kern_ktimer_create(td, uap->clock_id, evp, &id, -1);
127 error = copyout(&id, uap->timerid, sizeof(int));
135 linux_timer_settime(struct thread *td, struct linux_timer_settime_args *uap)
141 error = copyin(uap->new, &l_val, sizeof(l_val));
145 ovalp = uap->old != NULL ? &oval : NULL;
146 error = kern_ktimer_settime(td, uap->timerid, uap->flags, &val, ovalp);
147 if (error == 0 && uap->old != NULL) {
149 error = copyout(&l_oval, uap->old, sizeof(l_oval));
155 linux_timer_gettime(struct thread *td, struct linux_timer_gettime_args *uap)
161 error = kern_ktimer_gettime(td, uap->timerid, &val);
164 error = copyout(&l_val, uap->setting, sizeof(l_val));
170 linux_timer_getoverrun(struct thread *td, struct linux_timer_getoverrun_args *uap)
173 return (kern_ktimer_getoverrun(td, uap->timerid));
177 linux_timer_delete(struct thread *td, struct linux_timer_delete_args *uap)
180 return (kern_ktimer_delete(td, uap->timerid));