Home
last modified time | relevance | path

Searched refs:uap (Results 1 – 25 of 61) sorted by relevance

123

/dragonfly/sys/kern/
HDvfs_syscalls.c118 sys_mount(struct sysmsg *sysmsg, const struct mount_args *uap) in sys_mount() argument
128 int flags = uap->flags; in sys_mount()
146 if ((error = copyinstr(uap->type, fstypename, MFSNAMELEN, NULL)) != 0) in sys_mount()
174 error = nlookup_init(&nd, uap->path, UIO_USERSPACE, NLC_FOLLOW); in sys_mount()
396 error = VFS_MOUNT(mp, uap->path, uap->data, cred); in sys_mount()
412 error = VFS_MOUNT(mp, uap->path, uap->data, cred); in sys_mount()
610 sys_unmount(struct sysmsg *sysmsg, const struct unmount_args *uap) in sys_unmount() argument
631 error = nlookup_init(&nd, uap->path, UIO_USERSPACE, in sys_unmount()
679 uap->path); in sys_unmount()
693 error = dounmount(mp, uap->flags, 0); in sys_unmount()
[all …]
HDkern_acl.c150 const struct __acl_get_file_args *uap) in sys___acl_get_file() argument
157 error = nlookup_init(&nd, uap->path, UIO_USERSPACE, NLC_FOLLOW); in sys___acl_get_file()
164 error = vacl_get_acl(vp, uap->type, uap->aclp); in sys___acl_get_file()
175 const struct __acl_set_file_args *uap) in sys___acl_set_file() argument
182 error = nlookup_init(&nd, uap->path, UIO_USERSPACE, NLC_FOLLOW); in sys___acl_set_file()
189 error = vacl_set_acl(vp, uap->type, uap->aclp); in sys___acl_set_file()
200 const struct __acl_get_fd_args *uap) in sys___acl_get_fd() argument
206 if ((error = holdvnode(td, uap->filedes, &fp)) != 0) in sys___acl_get_fd()
208 error = vacl_get_acl((struct vnode *)fp->f_data, uap->type, uap->aclp); in sys___acl_get_fd()
219 const struct __acl_set_fd_args *uap) in sys___acl_set_fd() argument
[all …]
HDuipc_syscalls.c139 sys_socket(struct sysmsg *sysmsg, const struct socket_args *uap) in sys_socket() argument
143 error = kern_socket(uap->domain, uap->type, uap->protocol, in sys_socket()
171 sys_bind(struct sysmsg *sysmsg, const struct bind_args *uap) in sys_bind() argument
176 error = getsockaddr(&sa, uap->name, uap->namelen); in sys_bind()
183 error = kern_bind(uap->s, sa); in sys_bind()
211 sys_listen(struct sysmsg *sysmsg, const struct listen_args *uap) in sys_listen() argument
215 error = kern_listen(uap->s, uap->backlog); in sys_listen()
434 sys_accept(struct sysmsg *sysmsg, const struct accept_args *uap) in sys_accept() argument
440 if (uap->name) { in sys_accept()
441 error = copyin(uap->anamelen, &sa_len, sizeof(sa_len)); in sys_accept()
[all …]
HDkern_usched.c184 sys_usched_set(struct sysmsg *sysmsg, const struct usched_set_args *uap) in sys_usched_set() argument
194 if (uap->pid != 0 && uap->pid != curthread->td_proc->p_pid) in sys_usched_set()
200 switch (uap->cmd) { in sys_usched_set()
204 error = copyinstr(uap->data, buffer, sizeof(buffer), NULL); in sys_usched_set()
237 if (uap->bytes != sizeof(int)) { in sys_usched_set()
241 error = copyin(uap->data, &cpuid, sizeof(int)); in sys_usched_set()
260 if (uap->bytes != sizeof(int)) { in sys_usched_set()
264 error = copyout(&(mycpu->gd_cpuid), uap->data, sizeof(int)); in sys_usched_set()
268 if (uap->bytes != sizeof(cpumask_t)) { in sys_usched_set()
274 error = copyout(&mask, uap->data, sizeof(cpumask_t)); in sys_usched_set()
[all …]
HDkern_prot.c62 sys_getpid(struct sysmsg *sysmsg, const struct getpid_args *uap) in sys_getpid() argument
71 sys_getppid(struct sysmsg *sysmsg, const struct getppid_args *uap) in sys_getppid() argument
81 sys_lwp_gettid(struct sysmsg *sysmsg, const struct lwp_gettid_args *uap) in sys_lwp_gettid() argument
92 sys_getpgrp(struct sysmsg *sysmsg, const struct getpgrp_args *uap) in sys_getpgrp() argument
107 sys_getpgid(struct sysmsg *sysmsg, const struct getpgid_args *uap) in sys_getpgid() argument
115 if (uap->pid == 0) { in sys_getpgid()
119 pt = pfind(uap->pid); in sys_getpgid()
137 sys_getsid(struct sysmsg *sysmsg, const struct getsid_args *uap) in sys_getsid() argument
145 if (uap->pid == 0) { in sys_getsid()
149 pt = pfind(uap->pid); in sys_getsid()
[all …]
HDsys_generic.c123 sys_read(struct sysmsg *sysmsg, const struct read_args *uap) in sys_read() argument
130 if ((ssize_t)uap->nbyte < 0) in sys_read()
133 aiov.iov_base = uap->buf; in sys_read()
134 aiov.iov_len = uap->nbyte; in sys_read()
138 auio.uio_resid = uap->nbyte; in sys_read()
143 error = kern_preadv(uap->fd, &auio, 0, &sysmsg->sysmsg_szresult); in sys_read()
153 sys_extpread(struct sysmsg *sysmsg, const struct extpread_args *uap) in sys_extpread() argument
161 if ((ssize_t)uap->nbyte < 0) in sys_extpread()
164 aiov.iov_base = uap->buf; in sys_extpread()
165 aiov.iov_len = uap->nbyte; in sys_extpread()
[all …]
HDkern_time.c272 sys_clock_gettime(struct sysmsg *sysmsg, const struct clock_gettime_args *uap) in sys_clock_gettime() argument
277 error = kern_clock_gettime(uap->clock_id, &ats); in sys_clock_gettime()
279 error = copyout(&ats, uap->tp, sizeof(ats)); in sys_clock_gettime()
309 sys_clock_settime(struct sysmsg *sysmsg, const struct clock_settime_args *uap) in sys_clock_settime() argument
314 if ((error = copyin(uap->tp, &ats, sizeof(ats))) != 0) in sys_clock_settime()
317 error = kern_clock_settime(uap->clock_id, &ats); in sys_clock_settime()
377 sys_clock_getres(struct sysmsg *sysmsg, const struct clock_getres_args *uap) in sys_clock_getres() argument
382 error = kern_clock_getres(uap->clock_id, &ts); in sys_clock_getres()
384 error = copyout(&ts, uap->tp, sizeof(ts)); in sys_clock_getres()
424 sys_getcpuclockid(struct sysmsg *sysmsg, const struct getcpuclockid_args *uap) in sys_getcpuclockid() argument
[all …]
HDkern_p1003_1b.c112 int sys_##SC (struct sysmsg *sysmsg, const struct SC##_args *uap) \
195 const struct sched_setparam_args *uap)
202 copyin(uap->param, &sched_param, sizeof(sched_param));
204 if ((e = p31b_proc(uap->pid, &p)) == 0) {
223 const struct sched_getparam_args *uap)
230 if ((e = p31b_proc(uap->pid, &targetp)) == 0) {
245 copyout(&sched_param, uap->param, sizeof(sched_param));
251 const struct sched_setscheduler_args *uap)
258 copyin(uap->param, &sched_param, sizeof(sched_param));
260 if ((e = p31b_proc(uap->pid, &p)) == 0) {
[all …]
HDkern_caps.c77 sys_syscap_get(struct sysmsg *sysmsg, const struct syscap_get_args *uap) in sys_syscap_get() argument
80 int cap = uap->cap & ~__SYSCAP_XFLAGS; in sys_syscap_get()
88 if (uap->bytes && uap->bytes < sizeof(syscap_base_t)) in sys_syscap_get()
95 if (uap->cap & __SYSCAP_INPARENT) { in sys_syscap_get()
113 if (uap->data && uap->bytes) { in sys_syscap_get()
118 error = copyout(&base, uap->data, sizeof(base)); in sys_syscap_get()
131 if (uap->cap & __SYSCAP_INPARENT) in sys_syscap_get()
141 sys_syscap_set(struct sysmsg *sysmsg, const struct syscap_set_args *uap) in sys_syscap_set() argument
145 int cap = uap->cap & ~__SYSCAP_XFLAGS; in sys_syscap_set()
148 int flags = uap->flags; in sys_syscap_set()
[all …]
HDsysv_shm.c58 const struct shmget_args *uap, int mode);
60 const struct shmget_args *uap, int mode, int segnum);
223 sys_shmdt(struct sysmsg *sysmsg, const struct shmdt_args *uap) in sys_shmdt() argument
244 shmmap_s->va == (vm_offset_t)uap->shmaddr) in sys_shmdt()
261 sys_shmat(struct sysmsg *sysmsg, const struct shmat_args *uap) in sys_shmat() argument
296 shmseg = shm_find_segment_by_shmid(uap->shmid); in sys_shmat()
302 (uap->shmflg & SHM_RDONLY) ? IPC_R : IPC_R|IPC_W); in sys_shmat()
329 if ((uap->shmflg & SHM_RDONLY) == 0) in sys_shmat()
332 if (uap->shmaddr) { in sys_shmat()
334 if (uap->shmflg & SHM_RND) { in sys_shmat()
[all …]
HDsys_mqueue.c415 sys_mq_open(struct sysmsg *sysmsg, const struct mq_open_args *uap) in sys_mq_open() argument
432 oflag = uap->oflag; in sys_mq_open()
441 error = copyinstr(uap->name, name, MQ_NAMELEN - 1, NULL); in sys_mq_open()
464 if (uap->attr) { in sys_mq_open()
465 error = copyin(uap->attr, &attr, in sys_mq_open()
510 mq_new->mq_mode = ((uap->mode & in sys_mq_open()
615 sys_mq_close(struct sysmsg *sysmsg, const struct mq_close_args *uap) in sys_mq_close() argument
617 return sys_close(sysmsg, (const void *)uap); in sys_mq_close()
728 sys_mq_receive(struct sysmsg *sysmsg, const struct mq_receive_args *uap) in sys_mq_receive() argument
739 error = mq_receive1(curthread->td_lwp, uap->mqdes, uap->msg_ptr, in sys_mq_receive()
[all …]
HDkern_resource.c85 sys_getpriority(struct sysmsg *sysmsg, const struct getpriority_args *uap) in sys_getpriority() argument
93 int who = uap->who; in sys_getpriority()
96 switch (uap->which) { in sys_getpriority()
187 sys_setpriority(struct sysmsg *sysmsg, const struct setpriority_args *uap) in sys_setpriority() argument
195 int who = uap->who; in sys_setpriority()
197 switch (uap->which) { in sys_setpriority()
201 error = donice(curp, uap->prio); in sys_setpriority()
209 error = donice(p, uap->prio); in sys_setpriority()
234 error = donice(p, uap->prio); in sys_setpriority()
250 info.prio = uap->prio; in sys_setpriority()
[all …]
HDkern_umtx.c110 sys_umtx_sleep(struct sysmsg *sysmsg, const struct umtx_sleep_args *uap) in sys_umtx_sleep() argument
120 volatile const int *ptr = uap->ptr; in sys_umtx_sleep()
122 if (uap->timeout < 0) in sys_umtx_sleep()
159 if (value == uap->value) { in sys_umtx_sleep()
172 if (fuwordadd32(uptr, 0) != uap->value) { in sys_umtx_sleep()
189 if (uap->timeout && uap->timeout < timeout) in sys_umtx_sleep()
190 timeout = uap->timeout; in sys_umtx_sleep()
226 if (value == uap->value) { in sys_umtx_sleep()
250 sys_umtx_wakeup(struct sysmsg *sysmsg, const struct umtx_wakeup_args *uap) in sys_umtx_wakeup() argument
258 volatile const int *ptr = uap->ptr; in sys_umtx_wakeup()
[all …]
HDvfs_aio.c28 sys_aio_return(struct sysmsg *sysmsg, const struct aio_return_args *uap) in sys_aio_return() argument
34 sys_aio_suspend(struct sysmsg *sysmsg, const struct aio_suspend_args *uap) in sys_aio_suspend() argument
40 sys_aio_cancel(struct sysmsg *sysmsg, const struct aio_cancel_args *uap) in sys_aio_cancel() argument
46 sys_aio_error(struct sysmsg *sysmsg, const struct aio_error_args *uap) in sys_aio_error() argument
52 sys_aio_read(struct sysmsg *sysmsg, const struct aio_read_args *uap) in sys_aio_read() argument
58 sys_aio_write(struct sysmsg *sysmsg, const struct aio_write_args *uap) in sys_aio_write() argument
64 sys_lio_listio(struct sysmsg *sysmsg, const struct lio_listio_args *uap) in sys_lio_listio() argument
70 sys_aio_waitcomplete(struct sysmsg *sysmsg, const struct aio_waitcomplete_args *uap) in sys_aio_waitcomplete() argument
HDkern_varsym.c131 sys_varsym_set(struct sysmsg *sysmsg, const struct varsym_set_args *uap) in sys_varsym_set() argument
138 int level = uap->level; in sys_varsym_set()
143 if ((error = copyinstr(uap->name, name, sizeof(name), NULL)) != 0) in sys_varsym_set()
146 if (uap->data && in sys_varsym_set()
147 (error = copyinstr(uap->data, buf, MAXVARSYM_DATA, NULL)) != 0) in sys_varsym_set()
168 if (uap->data) { in sys_varsym_set()
190 sys_varsym_get(struct sysmsg *sysmsg, const struct varsym_get_args *uap) in sys_varsym_get() argument
197 if ((error = copyinstr(uap->wild, wild, sizeof(wild), NULL)) != 0) in sys_varsym_get()
199 sym = varsymfind(uap->mask, wild, strlen(wild)); in sys_varsym_get()
205 if (dlen < uap->bufsize) { in sys_varsym_get()
[all …]
HDkern_threads.c77 sys_thr_sleep(struct sysmsg *sysmsg, const struct thr_sleep_args *uap)
87 if (uap->timeout != 0) {
91 if ((error = copyin(uap->timeout, &ts, sizeof(ts))) != 0) {
118 if (uap->timeout == 0)
126 sys_thr_wakeup(struct sysmsg *sysmsg, const struct thr_wakeup_args *uap)
132 while(pSlave && (pSlave->p_pid != uap->pid))
159 sys_yield(struct sysmsg *sysmsg, const struct yield_args *uap) in sys_yield() argument
HDkern_exit.c109 sys_exit(struct sysmsg *sysmsg, const struct exit_args *uap) in sys_exit() argument
111 exit1(W_EXITCODE(uap->rval, 0)); in sys_exit()
120 sys_extexit(struct sysmsg *sysmsg, const struct extexit_args *uap) in sys_extexit() argument
126 action = EXTEXIT_ACTION(uap->how); in sys_extexit()
127 who = EXTEXIT_WHO(uap->how); in sys_extexit()
142 error = copyout(&uap->status, uap->addr, sizeof(uap->status)); in sys_extexit()
169 exit1(W_EXITCODE(uap->status, 0)); in sys_extexit()
913 sys_wait4(struct sysmsg *sysmsg, const struct wait_args *uap) in sys_wait4() argument
922 options = uap->options | WEXITED | WTRAPPED; in sys_wait4()
923 id = uap->pid; in sys_wait4()
[all …]
HDsubr_prof.c54 sys_profil(struct sysmsg *sysmsg, const struct profil_args *uap) in sys_profil() argument
59 if (uap->scale > (1 << 16)) in sys_profil()
62 if (uap->scale == 0) { in sys_profil()
69 upp->pr_off = uap->offset; in sys_profil()
70 upp->pr_scale = uap->scale; in sys_profil()
71 upp->pr_base = uap->samples; in sys_profil()
72 upp->pr_size = uap->size; in sys_profil()
HDkern_environment.c74 sys_kenv(struct sysmsg *sysmsg, const struct kenv_args *uap) in sys_kenv() argument
83 if (uap->what == KENV_DUMP) { in sys_kenv()
85 buflen = uap->len; in sys_kenv()
89 if (uap->len > 0 && uap->value != NULL) in sys_kenv()
100 if (uap->value != NULL && buffer != NULL && len > 0) { in sys_kenv()
107 error = copyout(buffer, uap->value, done); in sys_kenv()
114 switch (uap->what) { in sys_kenv()
130 error = copyinstr(uap->name, name, KENV_MNAMELEN + 1, NULL); in sys_kenv()
134 switch (uap->what) { in sys_kenv()
142 if (len > uap->len) in sys_kenv()
[all …]
/dragonfly/sys/vm/
HDvm_mmap.c92 sys_sstk(struct sysmsg *sysmsg, const struct sstk_args *uap) in sys_sstk() argument
391 sys_mmap(struct sysmsg *sysmsg, const struct mmap_args *uap) in sys_mmap() argument
394 int flags = uap->flags; in sys_mmap()
395 off_t upos = uap->pos; in sys_mmap()
411 if (uap->fd != -1) in sys_mmap()
413 if ((uap->prot & (PROT_READ|PROT_WRITE)) != in sys_mmap()
422 error = kern_mmap(curproc->p_vmspace, uap->addr, uap->len, in sys_mmap()
423 uap->prot, flags, in sys_mmap()
424 uap->fd, upos, &sysmsg->sysmsg_resultp); in sys_mmap()
437 sys_msync(struct sysmsg *sysmsg, const struct msync_args *uap) in sys_msync() argument
[all …]
HDvm_vmspace.c79 const struct vmspace_create_args *uap) in sys_vmspace_create() argument
115 ve->id = uap->id; in sys_vmspace_create()
141 const struct vmspace_destroy_args *uap) in sys_vmspace_destroy() argument
155 if ((ve = vkernel_find_vmspace(vkp, uap->id, 1)) != NULL) { in sys_vmspace_destroy()
177 const struct vmspace_ctl_args *uap) in sys_vmspace_ctl() argument
179 struct vmspace_ctl_args ua = *uap; in sys_vmspace_ctl()
273 const struct vmspace_mmap_args *uap) in sys_vmspace_mmap() argument
284 if ((ve = vkernel_find_vmspace(vkp, uap->id, 0)) == NULL) { in sys_vmspace_mmap()
289 error = kern_mmap(ve->vmspace, uap->addr, uap->len, in sys_vmspace_mmap()
290 uap->prot, uap->flags, in sys_vmspace_mmap()
[all …]
/dragonfly/sys/platform/vkernel64/x86_64/
HDtls.c67 sys_set_tls_area(struct sysmsg *sysmsg, const struct set_tls_area_args *uap) in sys_set_tls_area() argument
78 i = uap->which; in sys_set_tls_area()
81 if (uap->infosize < 0) in sys_set_tls_area()
87 if (uap->infosize != sizeof(info)) { in sys_set_tls_area()
89 error = copyin(uap->info, &info, in sys_set_tls_area()
90 min(sizeof(info), uap->infosize)); in sys_set_tls_area()
92 error = copyin(uap->info, &info, sizeof(info)); in sys_set_tls_area()
117 sys_get_tls_area(struct sysmsg *sysmsg, const struct get_tls_area_args *uap) in sys_get_tls_area() argument
126 i = uap->which; in sys_get_tls_area()
129 if (uap->infosize < 0) in sys_get_tls_area()
[all …]
/dragonfly/sys/platform/pc64/x86_64/
HDtls.c71 sys_set_tls_area(struct sysmsg *sysmsg, const struct set_tls_area_args *uap) in sys_set_tls_area() argument
82 i = uap->which; in sys_set_tls_area()
85 if (uap->infosize < 0) in sys_set_tls_area()
91 if (uap->infosize != sizeof(info)) { in sys_set_tls_area()
93 error = copyin(uap->info, &info, in sys_set_tls_area()
94 min(sizeof(info), uap->infosize)); in sys_set_tls_area()
96 error = copyin(uap->info, &info, sizeof(info)); in sys_set_tls_area()
123 sys_get_tls_area(struct sysmsg *sysmsg, const struct get_tls_area_args *uap) in sys_get_tls_area() argument
132 i = uap->which; in sys_get_tls_area()
135 if (uap->infosize < 0) in sys_get_tls_area()
[all …]
/dragonfly/lib/libc/isc/
HDev_timers.c60 void * uap; member
177 void *uap, in evSetTimer() argument
187 ctx, func, uap, in evSetTimer()
215 id->uap = uap; in evSetTimer()
295 void *uap, in evResetTimer() argument
327 timer->uap = uap; in evResetTimer()
354 void *uap, in evSetIdleTimer() argument
364 tt->uap = uap; in evSetIdleTimer()
383 idle_timer *tt = del->uap; in evClearIdleTimer()
393 void *uap, in evResetIdleTimer() argument
[all …]
HDev_streams.c46 static void writable(evContext opaqueCtx, void *uap, int fd, int evmask);
47 static void readable(evContext opaqueCtx, void *uap, int fd, int evmask);
63 evStreamFunc func, void *uap, evStreamID *id) in evWrite() argument
71 new->uap = uap; in evWrite()
97 evStreamFunc func, void *uap, evStreamID *id) in evRead() argument
105 new->uap = uap; in evRead()
265 writable(evContext opaqueCtx, void *uap, int fd, int evmask) { in writable() argument
266 evStream *str = uap; in writable()
288 readable(evContext opaqueCtx, void *uap, int fd, int evmask) { in readable() argument
289 evStream *str = uap; in readable()

123