task 145 bsp/drv/dev/base/kd.c task_t task = TASK_NULL; task 153 bsp/drv/dev/base/kd.c task = ti.id; task 156 bsp/drv/dev/base/kd.c return task; task 269 bsp/drv/dev/base/kd.c kd_vm_region(task_t task) task 282 bsp/drv/dev/base/kd.c vi.task = task; task 421 bsp/drv/dev/base/kd.c task_t task; task 428 bsp/drv/dev/base/kd.c task = kd_lookup_task(argv[1]); task 429 bsp/drv/dev/base/kd.c if (task == TASK_NULL) task 432 bsp/drv/dev/base/kd.c printf("Toggle trace flag: %s (%08lx)\n", argv[1], (long)task); task 433 bsp/drv/dev/base/kd.c dbgctl(DBGC_TRACE, (void *)task); task 44 include/ipc/ipc.h task_t task; /* id of send task */ task 84 include/sys/prex.h int exception_raise(task_t task, int excno); task 88 include/sys/prex.h int task_terminate(task_t task); task 90 include/sys/prex.h int task_suspend(task_t task); task 91 include/sys/prex.h int task_resume(task_t task); task 92 include/sys/prex.h int task_setname(task_t task, const char *name); task 93 include/sys/prex.h int task_setcap(task_t task, cap_t cap); task 94 include/sys/prex.h int task_chkcap(task_t task, cap_t cap); task 96 include/sys/prex.h int thread_create(task_t task, thread_t *tp); task 108 include/sys/prex.h int vm_allocate(task_t task, void **addr, size_t size, int anywhere); task 109 include/sys/prex.h int vm_free(task_t task, void *addr); task 110 include/sys/prex.h int vm_attribute(task_t task, void *addr, int prot); task 91 include/sys/sysinfo.h task_t task; /* task id */ task 117 include/sys/sysinfo.h task_t task; /* task id */ task 60 sys/include/kernel.h extern struct task kernel_task; /* kernel task */ task 44 sys/include/task.h struct task { task 64 sys/include/task.h #define curtask (curthread->task) task 49 sys/include/thread.h task_t task; /* task to which I belong */ task 39 sys/include/types.h typedef struct task *task_t; task 127 sys/ipc/msg.c hdr->task = curtask; task 234 sys/ipc/object.c object_cleanup(task_t task) task 238 sys/ipc/object.c while (!list_empty(&task->objects)) { task 239 sys/ipc/object.c obj = list_entry(list_first(&task->objects), task 163 sys/kern/debug.c task_t task; task 178 sys/kern/debug.c task = (task_t)data; task 179 sys/kern/debug.c if (task_valid(task)) { task 180 sys/kern/debug.c task->flags ^= TF_TRACE; task 150 sys/kern/exception.c exception_raise(task_t task, int excno) task 155 sys/kern/exception.c if (!task_valid(task)) { task 156 sys/kern/exception.c DPRINTF(("Bad exception task=%lx\n", (long)task)); task 160 sys/kern/exception.c if (task != curtask && !task_capable(CAP_KILL)) { task 164 sys/kern/exception.c error = exception_post(task, excno); task 173 sys/kern/exception.c exception_post(task_t task, int excno) task 180 sys/kern/exception.c if (task->flags & TF_SYSTEM) { task 185 sys/kern/exception.c if ((task->handler == EXC_DFL) || task 186 sys/kern/exception.c (task->nthreads == 0) || task 197 sys/kern/exception.c head = &task->threads; task 211 sys/kern/exception.c if (!list_empty(&task->threads)) { task 212 sys/kern/exception.c n = list_first(&task->threads); task 244 sys/kern/sched.c if (prev->task != next->task) task 245 sys/kern/sched.c vm_switch(next->task->map); task 181 sys/kern/system.c task_t task = 0; task 189 sys/kern/system.c task = (task_t)data; task 190 sys/kern/system.c if (!task_valid(task)) { task 194 sys/kern/system.c dbgctl(cmd, (void *)task); task 46 sys/kern/task.c struct task kernel_task; /* kernel task */ task 64 sys/kern/task.c struct task *task; task 97 sys/kern/task.c task = 0; task 98 sys/kern/task.c if (copyout(&task, childp, sizeof(task))) { task 104 sys/kern/task.c if ((task = kmem_alloc(sizeof(*task))) == NULL) { task 108 sys/kern/task.c memset(task, 0, sizeof(*task)); task 126 sys/kern/task.c kmem_free(task); task 134 sys/kern/task.c task->map = map; task 135 sys/kern/task.c task->handler = parent->handler; task 136 sys/kern/task.c task->capability = parent->capability; task 137 sys/kern/task.c task->parent = parent; task 138 sys/kern/task.c task->flags = TF_DEFAULT; task 139 sys/kern/task.c strlcpy(task->name, "*noname", MAXTASKNAME); task 140 sys/kern/task.c list_init(&task->threads); task 141 sys/kern/task.c list_init(&task->objects); task 142 sys/kern/task.c list_init(&task->mutexes); task 143 sys/kern/task.c list_init(&task->conds); task 144 sys/kern/task.c list_init(&task->sems); task 145 sys/kern/task.c list_insert(&task_list, &task->link); task 149 sys/kern/task.c *childp = task; task 155 sys/kern/task.c copyout(&task, childp, sizeof(task)); task 166 sys/kern/task.c task_terminate(task_t task) task 172 sys/kern/task.c if (!task_valid(task)) { task 176 sys/kern/task.c if (!task_access(task)) { task 181 sys/kern/task.c list_remove(&task->link); task 182 sys/kern/task.c task->handler = EXC_DFL; task 187 sys/kern/task.c timer_stop(&task->alarm); task 188 sys/kern/task.c object_cleanup(task); task 189 sys/kern/task.c mutex_cleanup(task); task 190 sys/kern/task.c cond_cleanup(task); task 191 sys/kern/task.c sem_cleanup(task); task 196 sys/kern/task.c head = &task->threads; task 202 sys/kern/task.c if (task == curtask) task 205 sys/kern/task.c vm_terminate(task->map); task 206 sys/kern/task.c task->map = NULL; task 207 sys/kern/task.c kmem_free(task); task 220 sys/kern/task.c return curthread->task; task 227 sys/kern/task.c task_suspend(task_t task) task 233 sys/kern/task.c if (!task_valid(task)) { task 237 sys/kern/task.c if (!task_access(task)) { task 242 sys/kern/task.c if (++task->suscnt == 1) { task 246 sys/kern/task.c head = &task->threads; task 263 sys/kern/task.c task_resume(task_t task) task 268 sys/kern/task.c ASSERT(task != curtask); task 271 sys/kern/task.c if (!task_valid(task)) { task 275 sys/kern/task.c if (!task_access(task)) { task 279 sys/kern/task.c if (task->suscnt == 0) { task 284 sys/kern/task.c if (--task->suscnt == 0) { task 288 sys/kern/task.c head = &task->threads; task 305 sys/kern/task.c task_setname(task_t task, const char *name) task 311 sys/kern/task.c if (!task_valid(task)) { task 315 sys/kern/task.c if (!task_access(task)) { task 321 sys/kern/task.c strlcpy(task->name, name, MAXTASKNAME); task 328 sys/kern/task.c strlcpy(task->name, str, MAXTASKNAME); task 338 sys/kern/task.c task_setcap(task_t task, cap_t cap) task 345 sys/kern/task.c if (!task_valid(task)) { task 349 sys/kern/task.c if (!task_access(task)) { task 353 sys/kern/task.c task->capability = cap; task 362 sys/kern/task.c task_chkcap(task_t task, cap_t cap) task 367 sys/kern/task.c if (!task_valid(task)) { task 371 sys/kern/task.c if ((task->capability & cap) == 0) { task 373 sys/kern/task.c curtask->name, task->name, cap)); task 374 sys/kern/task.c if (task->flags & TF_AUDIT) task 405 sys/kern/task.c task_valid(task_t task) task 411 sys/kern/task.c tmp = list_entry(n, struct task, link); task 412 sys/kern/task.c if (tmp == task) task 423 sys/kern/task.c task_access(task_t task) task 426 sys/kern/task.c if (task->flags & TF_SYSTEM) { task 430 sys/kern/task.c if (task == curtask || task->parent == curtask || task 431 sys/kern/task.c task == curtask->parent || /* XXX: fork on nommu */ task 443 sys/kern/task.c task_t task; task 450 sys/kern/task.c task = list_entry(n, struct task, link); task 452 sys/kern/task.c info->id = task; task 453 sys/kern/task.c info->flags = task->flags; task 454 sys/kern/task.c info->suscnt = task->suscnt; task 455 sys/kern/task.c info->capability = task->capability; task 456 sys/kern/task.c info->vmsize = task->map->total; task 457 sys/kern/task.c info->nthreads = task->nthreads; task 458 sys/kern/task.c info->active = (task == curtask) ? 1 : 0; task 459 sys/kern/task.c strlcpy(info->taskname, task->name, MAXTASKNAME); task 477 sys/kern/task.c task_t task; task 489 sys/kern/task.c if ((error = task_create(&kernel_task, VM_NEW, &task)) != 0) task 491 sys/kern/task.c if ((error = vm_load(task->map, mod, &stack)) != 0) task 493 sys/kern/task.c task_setname(task, mod->name); task 499 sys/kern/task.c task->capability = CAPSET_BOOT; task 500 sys/kern/task.c if (!strncmp(task->name, "exec", MAXTASKNAME)) task 501 sys/kern/task.c task->capability |= CAP_SETPCAP; task 506 sys/kern/task.c if ((error = thread_create(task, &t)) != 0) task 65 sys/kern/thread.c thread_create(task_t task, thread_t *tp) task 72 sys/kern/thread.c if (!task_valid(task)) { task 76 sys/kern/thread.c if (!task_access(task)) { task 80 sys/kern/thread.c if (task->nthreads >= MAXTHREADS) { task 99 sys/kern/thread.c if ((t = thread_allocate(task)) == NULL) { task 109 sys/kern/thread.c t->suscnt = task->suscnt + 1; task 137 sys/kern/thread.c if (!task_access(t->task)) { task 182 sys/kern/thread.c if (!task_access(t->task)) { task 251 sys/kern/thread.c if (!task_access(t->task)) { task 279 sys/kern/thread.c if (!task_access(t->task)) { task 288 sys/kern/thread.c if (t->suscnt == 0 && t->task->suscnt == 0) task 309 sys/kern/thread.c if (t->task->flags & TF_SYSTEM) { task 317 sys/kern/thread.c if (!(t->task == curtask || t->task->parent == curtask) && task 411 sys/kern/thread.c thread_allocate(task_t task) task 426 sys/kern/thread.c t->task = task; task 429 sys/kern/thread.c list_insert(&task->threads, &t->task_link); task 430 sys/kern/thread.c task->nthreads++; task 450 sys/kern/thread.c t->task->nthreads--; task 501 sys/kern/thread.c info->task = t->task; task 503 sys/kern/thread.c strlcpy(info->taskname, t->task->name, MAXTASKNAME); task 558 sys/kern/thread.c ASSERT(t->task->flags & TF_SYSTEM); task 591 sys/kern/thread.c idle_thread.task = &kernel_task; task 191 sys/kern/timer.c task_t task = (task_t)arg; task 193 sys/kern/timer.c exception_post(task, SIGALRM); task 253 sys/kern/timer.c if (t->task != curtask) { task 85 sys/mem/vm.c vm_allocate(task_t task, void **addr, size_t size, int anywhere) task 92 sys/mem/vm.c if (!task_valid(task)) { task 96 sys/mem/vm.c if (task != curtask && !task_capable(CAP_EXTMEM)) { task 109 sys/mem/vm.c error = do_allocate(task->map, &uaddr, size, anywhere); task 182 sys/mem/vm.c vm_free(task_t task, void *addr) task 187 sys/mem/vm.c if (!task_valid(task)) { task 191 sys/mem/vm.c if (task != curtask && !task_capable(CAP_EXTMEM)) { task 200 sys/mem/vm.c error = do_free(task->map, addr); task 247 sys/mem/vm.c vm_attribute(task_t task, void *addr, int attr) task 256 sys/mem/vm.c if (!task_valid(task)) { task 260 sys/mem/vm.c if (task != curtask && !task_capable(CAP_EXTMEM)) { task 269 sys/mem/vm.c error = do_attribute(task->map, addr, attr); task 743 sys/mem/vm.c task_t task = info->task; task 749 sys/mem/vm.c if (!task_valid(task)) { task 753 sys/mem/vm.c map = task->map; task 78 sys/mem/vm_nommu.c vm_allocate(task_t task, void **addr, size_t size, int anywhere) task 85 sys/mem/vm_nommu.c if (!task_valid(task)) { task 89 sys/mem/vm_nommu.c if (task != curtask && !task_capable(CAP_EXTMEM)) { task 102 sys/mem/vm_nommu.c error = do_allocate(task->map, &uaddr, size, anywhere); task 158 sys/mem/vm_nommu.c vm_free(task_t task, void *addr) task 163 sys/mem/vm_nommu.c if (!task_valid(task)) { task 167 sys/mem/vm_nommu.c if (task != curtask && !task_capable(CAP_EXTMEM)) { task 176 sys/mem/vm_nommu.c error = do_free(task->map, addr); task 218 sys/mem/vm_nommu.c vm_attribute(task_t task, void *addr, int attr) task 227 sys/mem/vm_nommu.c if (!task_valid(task)) { task 231 sys/mem/vm_nommu.c if (task != curtask && !task_capable(CAP_EXTMEM)) { task 240 sys/mem/vm_nommu.c error = do_attribute(task->map, addr, attr); task 503 sys/mem/vm_nommu.c task_t task = info->task; task 509 sys/mem/vm_nommu.c if (!task_valid(task)) { task 513 sys/mem/vm_nommu.c map = task->map; task 115 sys/sync/cond.c cond_cleanup(task_t task) task 119 sys/sync/cond.c while (!list_empty(&task->conds)) { task 120 sys/sync/cond.c c = list_entry(list_first(&task->conds), task 165 sys/sync/mutex.c mutex_cleanup(task_t task) task 169 sys/sync/mutex.c while (!list_empty(&task->mutexes)) { task 170 sys/sync/mutex.c m = list_entry(list_first(&task->mutexes), task 306 sys/sync/sem.c sem_cleanup(task_t task) task 311 sys/sync/sem.c head = &task->sems; task 55 usr/bin/ps/ps.c pstat(task_t task, struct procinfo *pi) task 62 usr/bin/ps/ps.c m.data[0] = (int)task; task 125 usr/bin/ps/ps.c if (pstat(ti.task, &pi) && !(ps_flag & PSFX)) task 60 usr/sample/bench/bench.c task_t task; task 74 usr/sample/bench/bench.c task = task_self(); task 75 usr/sample/bench/bench.c error = vm_allocate(task, (void **)&thread, task 86 usr/sample/bench/bench.c if (thread_create(task, &thread[i]) != 0) task 104 usr/sample/bench/bench.c vm_free(task, thread); task 56 usr/sample/ipc/ipc.c task_t task; task 60 usr/sample/ipc/ipc.c if (task_create(task_self(), VM_COPY, &task) != 0) task 63 usr/sample/ipc/ipc.c task = task_self(); task 65 usr/sample/ipc/ipc.c if (thread_create(task, &t) != 0) task 74 usr/sample/ipc/ipc.c return task; task 47 usr/sample/task/task.c task_t task; task 51 usr/sample/task/task.c if (task_create(task_self(), VM_SHARE, &task) != 0) task 54 usr/sample/task/task.c if (thread_create(task, &t) != 0) task 63 usr/sample/task/task.c return task; task 63 usr/server/exec/exec.h task_t task; /* task id */ task 45 usr/server/exec/exec_cap.c bind_cap(char *path, task_t task) task 64 usr/server/exec/exec_cap.c error = task_setcap(task, cap); task 76 usr/server/exec/exec_cap.c task_t task; task 79 usr/server/exec/exec_cap.c task = msg->hdr.task; task 87 usr/server/exec/exec_cap.c error = task_chkcap(task, CAP_PROTSERV); task 94 usr/server/exec/exec_cap.c bind_cap(msg->path, task); task 59 usr/server/exec/exec_elf.c load_exec(Elf32_Ehdr *ehdr, task_t task, int fd, vaddr_t *entry) task 79 usr/server/exec/exec_elf.c if (vm_allocate(task, &addr, size, 0) != 0) task 82 usr/server/exec/exec_elf.c if (vm_map(task, (void *)phdr->p_vaddr, size, &mapped) != 0) task 96 usr/server/exec/exec_elf.c if (vm_attribute(task, addr, PROT_READ) != 0) task 195 usr/server/exec/exec_elf.c load_reloc(Elf32_Ehdr *ehdr, task_t task, int fd, vaddr_t *entry) task 234 usr/server/exec/exec_elf.c if (vm_allocate(task, &base, total_size, 1) != 0) { task 240 usr/server/exec/exec_elf.c if (vm_map(task, base, total_size, &mapped) != 0) { task 350 usr/server/exec/exec_elf.c error = load_exec((Elf32_Ehdr *)exec->header, exec->task, task 353 usr/server/exec/exec_elf.c error = load_reloc((Elf32_Ehdr *)exec->header, exec->task, task 83 usr/server/exec/exec_execve.c DPRINTF(("exec_execve: path=%s task=%x\n", msg->path, msg->hdr.task)); task 85 usr/server/exec/exec_execve.c old_task = msg->hdr.task; task 191 usr/server/exec/exec_execve.c exec.task = new_task; task 314 usr/server/exec/exec_execve.c build_args(task_t task, void *stack, char *path, struct exec_msg *msg, task 332 usr/server/exec/exec_execve.c error = vm_map(task, stack, DFLSTKSZ, (void *)&mapped); task 105 usr/server/exec/main.c if (task_chkcap(msg->hdr.task, CAP_PROTSERV) != 0) task 287 usr/server/fs/ramfs/ramfs_vnops.c task_t task; task 299 usr/server/fs/ramfs/ramfs_vnops.c task = task_self(); task 301 usr/server/fs/ramfs/ramfs_vnops.c if (vm_allocate(task, &new_buf, new_size, 1)) task 305 usr/server/fs/ramfs/ramfs_vnops.c vm_free(task, np->rn_buf); task 367 usr/server/fs/ramfs/ramfs_vnops.c task_t task; task 383 usr/server/fs/ramfs/ramfs_vnops.c task = task_self(); task 392 usr/server/fs/ramfs/ramfs_vnops.c if (vm_allocate(task, &new_buf, new_size, 1)) task 396 usr/server/fs/ramfs/ramfs_vnops.c vm_free(task, np->rn_buf); task 80 usr/server/fs/vfs/main.c int (*func)(struct task *, struct msg *); task 83 usr/server/fs/vfs/main.c #define MSGMAP(code, fn) {code, (int (*)(struct task *, struct msg *))fn} task 89 usr/server/fs/vfs/main.c fs_mount(struct task *t, struct mount_msg *msg) task 109 usr/server/fs/vfs/main.c fs_umount(struct task *t, struct path_msg *msg) task 120 usr/server/fs/vfs/main.c fs_sync(struct task *t, struct msg *msg) task 127 usr/server/fs/vfs/main.c fs_open(struct task *t, struct open_msg *msg) task 163 usr/server/fs/vfs/main.c fs_close(struct task *t, struct msg *msg) task 185 usr/server/fs/vfs/main.c fs_mknod(struct task *t, struct open_msg *msg) task 197 usr/server/fs/vfs/main.c fs_lseek(struct task *t, struct msg *msg) task 214 usr/server/fs/vfs/main.c fs_read(struct task *t, struct io_msg *msg) task 224 usr/server/fs/vfs/main.c if ((error = vm_map(msg->hdr.task, msg->buf, size, &buf)) != 0) task 234 usr/server/fs/vfs/main.c fs_write(struct task *t, struct io_msg *msg) task 244 usr/server/fs/vfs/main.c if ((error = vm_map(msg->hdr.task, msg->buf, size, &buf)) != 0) task 254 usr/server/fs/vfs/main.c fs_ioctl(struct task *t, struct ioctl_msg *msg) task 265 usr/server/fs/vfs/main.c fs_fsync(struct task *t, struct msg *msg) task 276 usr/server/fs/vfs/main.c fs_fstat(struct task *t, struct stat_msg *msg) task 291 usr/server/fs/vfs/main.c fs_opendir(struct task *t, struct open_msg *msg) task 313 usr/server/fs/vfs/main.c fs_closedir(struct task *t, struct msg *msg) task 332 usr/server/fs/vfs/main.c fs_readdir(struct task *t, struct dir_msg *msg) task 343 usr/server/fs/vfs/main.c fs_rewinddir(struct task *t, struct msg *msg) task 354 usr/server/fs/vfs/main.c fs_seekdir(struct task *t, struct msg *msg) task 367 usr/server/fs/vfs/main.c fs_telldir(struct task *t, struct msg *msg) task 384 usr/server/fs/vfs/main.c fs_mkdir(struct task *t, struct open_msg *msg) task 396 usr/server/fs/vfs/main.c fs_rmdir(struct task *t, struct path_msg *msg) task 410 usr/server/fs/vfs/main.c fs_rename(struct task *t, struct path_msg *msg) task 429 usr/server/fs/vfs/main.c fs_chdir(struct task *t, struct path_msg *msg) task 451 usr/server/fs/vfs/main.c fs_fchdir(struct task *t, struct msg *msg) task 467 usr/server/fs/vfs/main.c fs_link(struct task *t, struct msg *msg) task 474 usr/server/fs/vfs/main.c fs_unlink(struct task *t, struct path_msg *msg) task 488 usr/server/fs/vfs/main.c fs_stat(struct task *t, struct stat_msg *msg) task 503 usr/server/fs/vfs/main.c fs_getcwd(struct task *t, struct path_msg *msg) task 514 usr/server/fs/vfs/main.c fs_dup(struct task *t, struct msg *msg) task 541 usr/server/fs/vfs/main.c fs_dup2(struct task *t, struct msg *msg) task 573 usr/server/fs/vfs/main.c fs_fcntl(struct task *t, struct fcntl_msg *msg) task 619 usr/server/fs/vfs/main.c fs_access(struct task *t, struct path_msg *msg) task 641 usr/server/fs/vfs/main.c fs_fork(struct task *t, struct msg *msg) task 643 usr/server/fs/vfs/main.c struct task *newtask; task 685 usr/server/fs/vfs/main.c fs_exec(struct task *t, struct msg *msg) task 688 usr/server/fs/vfs/main.c struct task *target; task 721 usr/server/fs/vfs/main.c fs_exit(struct task *t, struct msg *msg) task 747 usr/server/fs/vfs/main.c fs_register(struct task *t, struct msg *msg) task 749 usr/server/fs/vfs/main.c struct task *tmp; task 754 usr/server/fs/vfs/main.c error = task_alloc(msg->hdr.task, &tmp); task 759 usr/server/fs/vfs/main.c fs_pipe(struct task *t, struct msg *msg) task 805 usr/server/fs/vfs/main.c fs_isatty(struct task *t, struct msg *msg) task 820 usr/server/fs/vfs/main.c fs_truncate(struct task *t, struct path_msg *msg) task 834 usr/server/fs/vfs/main.c fs_ftruncate(struct task *t, struct msg *msg) task 848 usr/server/fs/vfs/main.c fs_boot(struct task *t, struct msg *msg) task 855 usr/server/fs/vfs/main.c if (task_chkcap(msg->hdr.task, CAP_PROTSERV) != 0) task 883 usr/server/fs/vfs/main.c fs_shutdown(struct task *t, struct msg *msg) task 901 usr/server/fs/vfs/main.c fs_debug(struct task *t, struct msg *msg) task 937 usr/server/fs/vfs/main.c msg.hdr.task = task_self(); task 1031 usr/server/fs/vfs/main.c struct task *t; task 1063 usr/server/fs/vfs/main.c t = task_lookup(msg->hdr.task); task 1078 usr/server/fs/vfs/main.c msg->hdr.task, map->code, error); task 81 usr/server/fs/vfs/vfs.h struct task { task 126 usr/server/fs/vfs/vfs.h struct task *task_lookup(task_t task); task 127 usr/server/fs/vfs/vfs.h int task_alloc(task_t task, struct task **pt); task 128 usr/server/fs/vfs/vfs.h void task_free(struct task *t); task 129 usr/server/fs/vfs/vfs.h void task_setid(struct task *t, task_t task); task 130 usr/server/fs/vfs/vfs.h void task_unlock(struct task *t); task 132 usr/server/fs/vfs/vfs.h file_t task_getfp(struct task *t, int fd); task 133 usr/server/fs/vfs/vfs.h void task_setfp(struct task *t, int fd, file_t fp); task 134 usr/server/fs/vfs/vfs.h int task_newfd(struct task *t); task 135 usr/server/fs/vfs/vfs.h void task_delfd(struct task *t, int fd); task 137 usr/server/fs/vfs/vfs.h int task_conv(struct task *t, char *path, int mode, char *full); task 140 usr/server/fs/vfs/vfs.h int sec_file_permission(task_t task, char *path, int mode); task 139 usr/server/fs/vfs/vfs_security.c capable(task_t task, cap_t cap) task 148 usr/server/fs/vfs/vfs_security.c if (task_chkcap(task, cap) != 0) { task 160 usr/server/fs/vfs/vfs_security.c sec_file_permission(task_t task, char *path, int acc) task 186 usr/server/fs/vfs/vfs_security.c if (!capable(task, map->cap_read)) task 190 usr/server/fs/vfs/vfs_security.c if (!capable(task, map->cap_write)) task 203 usr/server/fs/vfs/vfs_security.c acc, task, path)); task 69 usr/server/fs/vfs/vfs_task.c struct task * task 70 usr/server/fs/vfs/vfs_task.c task_lookup(task_t task) task 73 usr/server/fs/vfs/vfs_task.c struct task *t; task 75 usr/server/fs/vfs/vfs_task.c if (task == TASK_NULL) task 79 usr/server/fs/vfs/vfs_task.c head = &task_table[TASKHASH(task)]; task 81 usr/server/fs/vfs/vfs_task.c t = list_entry(n, struct task, t_link); task 83 usr/server/fs/vfs/vfs_task.c if (t->t_taskid == task) { task 99 usr/server/fs/vfs/vfs_task.c task_alloc(task_t task, struct task **pt) task 101 usr/server/fs/vfs/vfs_task.c struct task *t; task 104 usr/server/fs/vfs/vfs_task.c if (task_lookup(task) != NULL) task 107 usr/server/fs/vfs/vfs_task.c if (!(t = malloc(sizeof(struct task)))) task 109 usr/server/fs/vfs/vfs_task.c memset(t, 0, sizeof(struct task)); task 110 usr/server/fs/vfs/vfs_task.c t->t_taskid = task; task 115 usr/server/fs/vfs/vfs_task.c list_insert(&task_table[TASKHASH(task)], &t->t_link); task 125 usr/server/fs/vfs/vfs_task.c task_free(struct task *t) task 140 usr/server/fs/vfs/vfs_task.c task_setid(struct task *t, task_t task) task 145 usr/server/fs/vfs/vfs_task.c t->t_taskid = task; task 146 usr/server/fs/vfs/vfs_task.c list_insert(&task_table[TASKHASH(task)], &t->t_link); task 154 usr/server/fs/vfs/vfs_task.c task_unlock(struct task *t) task 165 usr/server/fs/vfs/vfs_task.c task_getfp(struct task *t, int fd) task 178 usr/server/fs/vfs/vfs_task.c task_setfp(struct task *t, int fd, file_t fp) task 189 usr/server/fs/vfs/vfs_task.c task_newfd(struct task *t) task 210 usr/server/fs/vfs/vfs_task.c task_delfd(struct task *t, int fd) task 224 usr/server/fs/vfs/vfs_task.c task_conv(struct task *t, char *path, int acc, char *full) task 297 usr/server/fs/vfs/vfs_task.c struct task *t; task 307 usr/server/fs/vfs/vfs_task.c t = list_entry(n, struct task, t_link); task 450 usr/server/pow/pow.c msg.hdr.code, msg.hdr.task)); task 454 usr/server/pow/pow.c if (task_chkcap(msg.hdr.task, CAP_POWERMGMT) != 0) { task 317 usr/server/proc/main.c task_t task; task 322 usr/server/proc/main.c task = (task_t)msg->data[0]; task 323 usr/server/proc/main.c if ((p = task_to_proc(task)) == NULL) task 342 usr/server/proc/main.c DPRINTF(("proc: setinit task=%x\n", msg->hdr.task)); task 345 usr/server/proc/main.c if (task_chkcap(msg->hdr.task, CAP_PROTSERV) != 0) task 352 usr/server/proc/main.c newproc(&initproc, 1, msg->hdr.task); task 363 usr/server/proc/main.c task_t task = msg->hdr.task; task 366 usr/server/proc/main.c DPRINTF(("proc: trace task=%x\n", task)); task 368 usr/server/proc/main.c if ((p = task_to_proc(task)) == NULL) task 384 usr/server/proc/main.c DPRINTF(("proc: register task=%x\n", msg->hdr.task)); task 387 usr/server/proc/main.c if (task_chkcap(msg->hdr.task, CAP_PROTSERV) != 0) task 395 usr/server/proc/main.c if (newproc(p, 0, msg->hdr.task)) task 414 usr/server/proc/main.c if (task_chkcap(msg->hdr.task, CAP_PROTSERV) != 0) task 556 usr/server/proc/main.c msg.hdr.code, msg.hdr.task)); task 564 usr/server/proc/main.c curproc = task_to_proc(msg.hdr.task); task 84 usr/server/proc/proc_fork.c newproc(struct proc *p, pid_t pid, task_t task) task 105 usr/server/proc/proc_fork.c p->p_task = task; task 93 usr/server/proc/proc_hash.c task_to_proc(task_t task) task 98 usr/server/proc/proc_hash.c head = &task_table[IDHASH(task)]; task 103 usr/server/proc/proc_hash.c if (p->p_task == task) task 51 usr/test/exception/exception.c task_t task; task 57 usr/test/exception/exception.c task = task_self(); task 63 usr/test/exception/exception.c exception_raise(task, 1); task 64 usr/test/exception/exception.c exception_raise(task, 2); task 65 usr/test/exception/exception.c exception_raise(task, 4); task 66 usr/test/exception/exception.c exception_raise(task, 8); task 72 usr/test/exception/exception.c exception_raise(task, 1); task 56 usr/test/task/task.c task_t task; task 72 usr/test/task/task.c error = task_create(task_self(), VM_COPY, &task); task 74 usr/test/task/task.c error = task_create(task_self(), VM_SHARE, &task); task 85 usr/test/task/task.c error = thread_create(task, &t); task 101 usr/test/task/task.c error = task_suspend(task); task 112 usr/test/task/task.c error = task_resume(task); task 122 usr/test/task/task.c error = task_resume(task); task 129 usr/test/task/task.c task_terminate(task);