tag | line | file | source code |
current | 62 | fs/buffer.c | struct wait_queue wait = { current, NULL }; |
current | 66 | fs/buffer.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 72 | fs/buffer.c | current->state = TASK_RUNNING; |
current | 76 | fs/exec.c | if (!current->dumpable) |
current | 78 | fs/exec.c | current->dumpable = 0; |
current | 80 | fs/exec.c | if (current->rlim[RLIMIT_CORE].rlim_cur < PAGE_SIZE) |
current | 109 | fs/exec.c | dump.u_tsize = ((unsigned long) current->end_code) >> 12; |
current | 110 | fs/exec.c | dump.u_dsize = ((unsigned long) (current->brk + (PAGE_SIZE-1))) >> 12; |
current | 118 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 122 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 131 | fs/exec.c | if ((dump.u_fpvalid = current->used_math) != 0) { |
current | 132 | fs/exec.c | if (last_task_used_math == current) |
current | 135 | fs/exec.c | memcpy(&dump.i387,¤t->tss.i387.hard,sizeof(dump.i387)); |
current | 146 | fs/exec.c | DUMP_WRITE(current->comm,16); |
current | 165 | fs/exec.c | DUMP_WRITE(current,sizeof(*current)); |
current | 183 | fs/exec.c | #define libnum (current->numlibraries) |
current | 221 | fs/exec.c | current->libraries[libnum].library = inode; |
current | 222 | fs/exec.c | current->libraries[libnum].start = ex.a_entry; |
current | 224 | fs/exec.c | current->libraries[libnum].length = offset; |
current | 225 | fs/exec.c | current->libraries[libnum].bss = ex.a_bss; |
current | 231 | fs/exec.c | current->libraries[libnum].start, |
current | 232 | fs/exec.c | current->libraries[libnum].length); |
current | 257 | fs/exec.c | current->arg_start = (unsigned long) p; |
current | 263 | fs/exec.c | current->arg_end = current->env_start = (unsigned long) p; |
current | 269 | fs/exec.c | current->env_end = (unsigned long) p; |
current | 363 | fs/exec.c | current->start_code = code_base; |
current | 364 | fs/exec.c | set_base(current->ldt[1],code_base); |
current | 365 | fs/exec.c | set_limit(current->ldt[1],code_limit); |
current | 366 | fs/exec.c | set_base(current->ldt[2],data_base); |
current | 367 | fs/exec.c | set_limit(current->ldt[2],data_limit); |
current | 374 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
current | 462 | fs/exec.c | if (IS_NOSUID(inode) && (((i & S_ISUID) && inode->i_uid != current-> |
current | 469 | fs/exec.c | if (current->flags & PF_PTRACED) { |
current | 470 | fs/exec.c | e_uid = current->euid; |
current | 471 | fs/exec.c | e_gid = current->egid; |
current | 473 | fs/exec.c | e_uid = (i & S_ISUID) ? inode->i_uid : current->euid; |
current | 474 | fs/exec.c | e_gid = (i & S_ISGID) ? inode->i_gid : current->egid; |
current | 476 | fs/exec.c | if (current->euid == inode->i_uid) |
current | 586 | fs/exec.c | current->dumpable = 1; |
current | 592 | fs/exec.c | current->comm[i++] = ch; |
current | 593 | fs/exec.c | current->comm[i] = '\0'; |
current | 594 | fs/exec.c | if (current->executable) { |
current | 595 | fs/exec.c | iput(current->executable); |
current | 596 | fs/exec.c | current->executable = NULL; |
current | 598 | fs/exec.c | i = current->numlibraries; |
current | 600 | fs/exec.c | iput(current->libraries[i].library); |
current | 601 | fs/exec.c | current->libraries[i].library = NULL; |
current | 603 | fs/exec.c | if (e_uid != current->euid || e_gid != current->egid || |
current | 605 | fs/exec.c | current->dumpable = 0; |
current | 606 | fs/exec.c | current->numlibraries = 0; |
current | 607 | fs/exec.c | current->signal = 0; |
current | 609 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
current | 610 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
current | 611 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
current | 612 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
current | 615 | fs/exec.c | if (FD_ISSET(i,¤t->close_on_exec)) |
current | 617 | fs/exec.c | FD_ZERO(¤t->close_on_exec); |
current | 618 | fs/exec.c | clear_page_tables(current); |
current | 619 | fs/exec.c | if (last_task_used_math == current) |
current | 621 | fs/exec.c | current->used_math = 0; |
current | 625 | fs/exec.c | current->brk = ex.a_bss + |
current | 626 | fs/exec.c | (current->end_data = ex.a_data + |
current | 627 | fs/exec.c | (current->end_code = ex.a_text)); |
current | 628 | fs/exec.c | current->start_stack = p; |
current | 629 | fs/exec.c | current->rss = (TASK_SIZE - p + PAGE_SIZE-1) / PAGE_SIZE; |
current | 630 | fs/exec.c | current->suid = current->euid = e_uid; |
current | 631 | fs/exec.c | current->sgid = current->egid = e_gid; |
current | 639 | fs/exec.c | current->executable = inode; |
current | 643 | fs/exec.c | if (current->flags & PF_PTRACED) |
current | 644 | fs/exec.c | send_sig(SIGTRAP, current, 0); |
current | 285 | fs/ext/freelists.c | inode->i_uid = current->euid; |
current | 286 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
current | 359 | fs/ext/namei.c | inode->i_uid = current->euid; |
current | 442 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
current | 538 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 539 | fs/ext/namei.c | inode->i_uid != current->euid) |
current | 592 | fs/ext/namei.c | current->euid != inode->i_uid && |
current | 593 | fs/ext/namei.c | current->euid != dir->i_uid) |
current | 770 | fs/ext/namei.c | current->counter = 0; |
current | 784 | fs/ext/namei.c | current->euid != old_inode->i_uid && |
current | 785 | fs/ext/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 805 | fs/ext/namei.c | current->euid != new_inode->i_uid && |
current | 806 | fs/ext/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 55 | fs/ext/symlink.c | dir = current->root; |
current | 67 | fs/ext/symlink.c | if (current->link_count > 5) { |
current | 78 | fs/ext/symlink.c | current->link_count++; |
current | 80 | fs/ext/symlink.c | current->link_count--; |
current | 238 | fs/ext/truncate.c | current->counter = 0; |
current | 29 | fs/ext2/acl.c | else if (current->euid == inode->i_uid) |
current | 443 | fs/ext2/ialloc.c | inode->i_uid = current->euid; |
current | 444 | fs/ext2/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
current | 444 | fs/ext2/inode.c | (current->rlim[RLIMIT_FSIZE].rlim_cur >> |
current | 521 | fs/ext2/inode.c | (current->rlim[RLIMIT_FSIZE].rlim_cur >> |
current | 347 | fs/ext2/namei.c | inode->i_uid = current->euid; |
current | 438 | fs/ext2/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
current | 534 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 535 | fs/ext2/namei.c | inode->i_uid != current->euid) |
current | 591 | fs/ext2/namei.c | current->euid != inode->i_uid && |
current | 592 | fs/ext2/namei.c | current->euid != dir->i_uid) |
current | 801 | fs/ext2/namei.c | current->counter = 0; |
current | 815 | fs/ext2/namei.c | current->euid != old_inode->i_uid && |
current | 816 | fs/ext2/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 846 | fs/ext2/namei.c | current->euid != new_inode->i_uid && |
current | 847 | fs/ext2/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 57 | fs/ext2/symlink.c | dir = current->root; |
current | 69 | fs/ext2/symlink.c | if (current->link_count > 5) { |
current | 83 | fs/ext2/symlink.c | current->link_count ++; |
current | 85 | fs/ext2/symlink.c | current->link_count --; |
current | 269 | fs/ext2/truncate.c | current->counter = 0; |
current | 22 | fs/fcntl.c | if (fd >= NR_OPEN || !current->filp[fd]) |
current | 27 | fs/fcntl.c | if (current->filp[arg]) |
current | 33 | fs/fcntl.c | FD_CLR(arg, ¤t->close_on_exec); |
current | 34 | fs/fcntl.c | (current->filp[arg] = current->filp[fd])->f_count++; |
current | 40 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->filp[oldfd]) |
current | 71 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 77 | fs/fcntl.c | return FD_ISSET(fd, ¤t->close_on_exec); |
current | 80 | fs/fcntl.c | FD_SET(fd, ¤t->close_on_exec); |
current | 82 | fs/fcntl.c | FD_CLR(fd, ¤t->close_on_exec); |
current | 39 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 70 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 284 | fs/inode.c | inode->i_uid = current->euid; |
current | 285 | fs/inode.c | inode->i_gid = current->egid; |
current | 365 | fs/inode.c | struct wait_queue wait = { current, NULL }; |
current | 369 | fs/inode.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 375 | fs/inode.c | current->state = TASK_RUNNING; |
current | 62 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 66 | fs/ioctl.c | FD_SET(fd, ¤t->close_on_exec); |
current | 70 | fs/ioctl.c | FD_CLR(fd, ¤t->close_on_exec); |
current | 51 | fs/isofs/symlink.c | dir = current->root; |
current | 64 | fs/isofs/symlink.c | if ((current->link_count > 5) || |
current | 72 | fs/isofs/symlink.c | current->link_count++; |
current | 74 | fs/isofs/symlink.c | current->link_count--; |
current | 58 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 102 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 154 | fs/locks.c | if (current->signal & ~current->blocked) |
current | 157 | fs/locks.c | if (current->signal & ~current->blocked) |
current | 220 | fs/locks.c | fl->fl_owner = current; |
current | 454 | fs/locks.c | new->fl_owner = current; /* FIXME: needed? */ |
current | 213 | fs/minix/bitmap.c | inode->i_uid = current->euid; |
current | 214 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
current | 269 | fs/minix/namei.c | inode->i_uid = current->euid; |
current | 355 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
current | 449 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 450 | fs/minix/namei.c | inode->i_uid != current->euid) |
current | 503 | fs/minix/namei.c | current->counter = 0; |
current | 509 | fs/minix/namei.c | current->euid != inode->i_uid && |
current | 510 | fs/minix/namei.c | current->euid != dir->i_uid) |
current | 683 | fs/minix/namei.c | current->counter = 0; |
current | 697 | fs/minix/namei.c | current->euid != old_inode->i_uid && |
current | 698 | fs/minix/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 728 | fs/minix/namei.c | current->euid != new_inode->i_uid && |
current | 729 | fs/minix/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 49 | fs/minix/symlink.c | dir = current->root; |
current | 61 | fs/minix/symlink.c | if (current->link_count > 5) { |
current | 72 | fs/minix/symlink.c | current->link_count++; |
current | 74 | fs/minix/symlink.c | current->link_count--; |
current | 180 | fs/minix/truncate.c | current->counter = 0; |
current | 75 | fs/msdos/inode.c | *uid = current->uid; |
current | 76 | fs/msdos/inode.c | *gid = current->gid; |
current | 77 | fs/msdos/inode.c | *umask = current->umask; |
current | 111 | fs/msdos/misc.c | int count,this,limit,last,current,sector; |
current | 143 | fs/msdos/misc.c | if ((current = MSDOS_I(inode)->i_start) != 0) { |
current | 144 | fs/msdos/misc.c | cache_lookup(inode,0x7fffffff,&last,¤t); |
current | 145 | fs/msdos/misc.c | while (current && current != -1) |
current | 146 | fs/msdos/misc.c | if (!(current = fat_access(inode->i_sb, |
current | 147 | fs/msdos/misc.c | last = current,-1))) { |
current | 163 | fs/msdos/misc.c | for (current = 0; current < MSDOS_SB(inode->i_sb)->cluster_size; |
current | 164 | fs/msdos/misc.c | current++) { |
current | 166 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->cluster_size+current; |
current | 170 | fs/msdos/misc.c | if (current < MSDOS_SB(inode->i_sb)->cluster_size-1 && |
current | 179 | fs/msdos/misc.c | current++; |
current | 458 | fs/msdos/misc.c | int error,current,prev,this; |
current | 463 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT, |
current | 466 | fs/msdos/misc.c | return current; |
current | 468 | fs/msdos/misc.c | if (!current) this = MSDOS_ROOT_INO; |
current | 470 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,&zero,NULL, |
current | 475 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,¤t,&this,NULL, |
current | 84 | fs/namei.c | else if (current->euid == inode->i_uid) |
current | 110 | fs/namei.c | if (dir == current->root) { |
current | 170 | fs/namei.c | base = current->pwd; |
current | 175 | fs/namei.c | base = current->root; |
current | 286 | fs/namei.c | mode &= 07777 & ~current->umask; |
current | 387 | fs/namei.c | mode &= ~current->umask; |
current | 78 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) { |
current | 636 | fs/nfs/proc.c | *p++ = htonl(current->euid); |
current | 637 | fs/nfs/proc.c | *p++ = htonl(current->egid); |
current | 639 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
current | 640 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
current | 78 | fs/nfs/sock.c | current->state = TASK_INTERRUPTIBLE; |
current | 83 | fs/nfs/sock.c | current->timeout = jiffies + timeout; |
current | 86 | fs/nfs/sock.c | current->state = TASK_RUNNING; |
current | 87 | fs/nfs/sock.c | if (current->signal & ~current->blocked) { |
current | 93 | fs/nfs/sock.c | current->timeout = 0; |
current | 97 | fs/nfs/sock.c | if (!current->timeout) { |
current | 117 | fs/nfs/sock.c | current->timeout = 0; |
current | 121 | fs/nfs/sock.c | current->state = TASK_RUNNING; |
current | 50 | fs/nfs/symlink.c | dir = current->root; |
current | 62 | fs/nfs/symlink.c | if (current->link_count > 5) { |
current | 76 | fs/nfs/symlink.c | current->link_count++; |
current | 78 | fs/nfs/symlink.c | current->link_count--; |
current | 58 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 99 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 131 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) { |
current | 139 | fs/open.c | if ((current->euid != inode->i_uid) && |
current | 170 | fs/open.c | if (current->uid == inode->i_uid) |
current | 186 | fs/open.c | if ((!current->uid) && |
current | 208 | fs/open.c | iput(current->pwd); |
current | 209 | fs/open.c | current->pwd = inode; |
current | 229 | fs/open.c | iput(current->root); |
current | 230 | fs/open.c | current->root = inode; |
current | 239 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 243 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) |
current | 263 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) { |
current | 286 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 296 | fs/open.c | if ((current->euid == inode->i_uid && user == inode->i_uid && |
current | 324 | fs/open.c | if ((current->euid == inode->i_uid && user == inode->i_uid && |
current | 361 | fs/open.c | if (!current->filp[fd]) |
current | 365 | fs/open.c | FD_CLR(fd,¤t->close_on_exec); |
current | 369 | fs/open.c | current->filp[fd] = f; |
current | 382 | fs/open.c | current->filp[fd]=NULL; |
current | 392 | fs/open.c | current->filp[fd] = NULL; |
current | 409 | fs/open.c | current->filp[fd]=NULL; |
current | 432 | fs/open.c | fcntl_remove_locks(current, filp); |
current | 451 | fs/open.c | FD_CLR(fd, ¤t->close_on_exec); |
current | 452 | fs/open.c | if (!(filp = current->filp[fd])) |
current | 454 | fs/open.c | current->filp[fd] = NULL; |
current | 469 | fs/open.c | if (current->tty < 0) |
current | 471 | fs/open.c | tty = TTY_TABLE(MINOR(current->tty)); |
current | 25 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 55 | fs/pipe.c | send_sig(SIGPIPE,current,0); |
current | 66 | fs/pipe.c | send_sig(SIGPIPE,current,0); |
current | 69 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 234 | fs/pipe.c | if (!current->filp[i]) { |
current | 235 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
current | 239 | fs/pipe.c | current->filp[fd[0]]=NULL; |
current | 246 | fs/pipe.c | current->filp[fd[0]] = NULL; |
current | 247 | fs/pipe.c | current->filp[fd[1]] = NULL; |
current | 164 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
current | 45 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 94 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 106 | fs/proc/mem.c | do_wp_page(0,addr,current,0); |
current | 122 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 89 | fs/proc/root.c | ino = (current->pid << 16) + 2; |
current | 25 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->filp[fd]) || |
current | 42 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode)) |
current | 76 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 96 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 98 | fs/select.c | if (!current->filp[i]) |
current | 100 | fs/select.c | if (!current->filp[i]->f_inode) |
current | 118 | fs/select.c | current->state = TASK_INTERRUPTIBLE; |
current | 120 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->filp[i])) { |
current | 125 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->filp[i])) { |
current | 130 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->filp[i])) { |
current | 137 | fs/select.c | if (!count && current->timeout && !(current->signal & ~current->blocked)) { |
current | 143 | fs/select.c | current->state = TASK_RUNNING; |
current | 233 | fs/select.c | current->timeout = timeout; |
current | 235 | fs/select.c | if (current->timeout > jiffies) |
current | 236 | fs/select.c | timeout = current->timeout - jiffies; |
current | 239 | fs/select.c | current->timeout = 0; |
current | 248 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
current | 19 | fs/stat.c | current->comm); |
current | 151 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
current | 166 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
current | 54 | fs/super.c | struct wait_queue wait = { current, NULL }; |
current | 58 | fs/super.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 64 | fs/super.c | current->state = TASK_RUNNING; |
current | 467 | fs/super.c | current->pwd = inode; |
current | 468 | fs/super.c | current->root = inode; |
current | 327 | fs/xiafs/bitmap.c | inode->i_uid = current->euid; |
current | 328 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
current | 293 | fs/xiafs/namei.c | inode->i_uid = current->euid; |
current | 376 | fs/xiafs/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
current | 495 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 496 | fs/xiafs/namei.c | inode->i_uid != current->euid) |
current | 549 | fs/xiafs/namei.c | current->counter = 0; |
current | 555 | fs/xiafs/namei.c | current->euid != inode->i_uid && |
current | 556 | fs/xiafs/namei.c | current->euid != dir->i_uid) |
current | 728 | fs/xiafs/namei.c | current->euid != old_inode->i_uid && |
current | 729 | fs/xiafs/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 749 | fs/xiafs/namei.c | current->euid != new_inode->i_uid && |
current | 750 | fs/xiafs/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 787 | fs/xiafs/namei.c | current->counter=0; |
current | 83 | fs/xiafs/symlink.c | dir = current->root; |
current | 99 | fs/xiafs/symlink.c | if (current->link_count > 5) { |
current | 110 | fs/xiafs/symlink.c | current->link_count++; |
current | 112 | fs/xiafs/symlink.c | current->link_count--; |
current | 193 | fs/xiafs/truncate.c | current->counter = 0; |
current | 31 | include/linux/kernel.h | #define suser() (current->euid == 0) |
current | 262 | include/linux/sched.h | extern struct task_struct *current; |
current | 430 | include/linux/sched.h | entry->wait.task = current; |
current | 274 | kernel/FPU-emu/errors.c | send_sig(SIGFPE, current, 1); |
current | 150 | kernel/FPU-emu/fpu_entry.c | if (!current->used_math) |
current | 153 | kernel/FPU-emu/fpu_entry.c | current->used_math = 1; |
current | 175 | kernel/FPU-emu/fpu_entry.c | if (current->flags & PF_PTRACED) |
current | 343 | kernel/FPU-emu/fpu_entry.c | send_sig(signal,current,1); |
current | 359 | kernel/FPU-emu/fpu_entry.c | printk("killing %s.\n",current->comm); |
current | 360 | kernel/FPU-emu/fpu_entry.c | send_sig(SIGFPE,current,1); |
current | 17 | kernel/FPU-emu/fpu_system.h | #define I387 (current->tss.i387) |
current | 246 | kernel/blk_drv/blk.h | if (p->counter > current->counter) |
current | 254 | kernel/blk_drv/ll_rw_blk.c | req->waiting = current; |
current | 257 | kernel/blk_drv/ll_rw_blk.c | current->state = TASK_SWAPPING; |
current | 368 | kernel/blk_drv/ll_rw_blk.c | req->waiting = current; |
current | 371 | kernel/blk_drv/ll_rw_blk.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 486 | kernel/blk_drv/scsi/scsi.h | if (p->counter > current->counter) |
current | 515 | kernel/blk_drv/scsi/scsi.h | struct wait_queue wait = { current, NULL}; \ |
current | 518 | kernel/blk_drv/scsi/scsi.h | current->state = TASK_UNINTERRUPTIBLE; \ |
current | 524 | kernel/blk_drv/scsi/scsi.h | current->state = TASK_RUNNING; \ |
current | 84 | kernel/blk_drv/scsi/scsi_ioctl.c | if (p->counter > current->counter) |
current | 102 | kernel/blk_drv/scsi/scsi_ioctl.c | SCpnt->request.waiting = current; |
current | 103 | kernel/blk_drv/scsi/scsi_ioctl.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 187 | kernel/blk_drv/scsi/scsi_ioctl.c | SCpnt->request.waiting = current; |
current | 188 | kernel/blk_drv/scsi/scsi_ioctl.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 665 | kernel/blk_drv/scsi/sd.c | if (p->counter > current->counter) |
current | 698 | kernel/blk_drv/scsi/sd.c | if (current == task[0]) |
current | 702 | kernel/blk_drv/scsi/sd.c | SCpnt->request.waiting = current; |
current | 703 | kernel/blk_drv/scsi/sd.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 623 | kernel/blk_drv/scsi/sr.c | if (p->counter > current->counter) |
current | 662 | kernel/blk_drv/scsi/sr.c | if (current == task[0]) |
current | 666 | kernel/blk_drv/scsi/sr.c | SCpnt->request.waiting = current; |
current | 667 | kernel/blk_drv/scsi/sr.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 31 | kernel/blk_drv/scsi/sr_ioctl.c | if (p->counter > current->counter) |
current | 52 | kernel/blk_drv/scsi/sr_ioctl.c | SCpnt->request.waiting = current; |
current | 53 | kernel/blk_drv/scsi/sr_ioctl.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 168 | kernel/chr_drv/lp.c | current->timeout = jiffies + LP_TIMEOUT_INTERRUPT; |
current | 171 | kernel/chr_drv/lp.c | if (current->signal & ~current->blocked) { |
current | 221 | kernel/chr_drv/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 222 | kernel/chr_drv/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 229 | kernel/chr_drv/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 230 | kernel/chr_drv/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 238 | kernel/chr_drv/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 239 | kernel/chr_drv/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 244 | kernel/chr_drv/lp.c | if (current->signal & ~current->blocked) { |
current | 255 | kernel/chr_drv/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 256 | kernel/chr_drv/lp.c | current->timeout = jiffies + LP_TIME(minor); |
current | 224 | kernel/chr_drv/psaux.c | struct wait_queue wait = { current, NULL }; |
current | 233 | kernel/chr_drv/psaux.c | current->state = TASK_INTERRUPTIBLE; |
current | 234 | kernel/chr_drv/psaux.c | if (queue_empty() && !(current->signal & ~current->blocked)) { |
current | 238 | kernel/chr_drv/psaux.c | current->state = TASK_RUNNING; |
current | 251 | kernel/chr_drv/psaux.c | if (current->signal & ~current->blocked) |
current | 306 | kernel/chr_drv/psaux.c | current->state = TASK_INTERRUPTIBLE; |
current | 307 | kernel/chr_drv/psaux.c | current->timeout = jiffies + 5; |
current | 52 | kernel/chr_drv/pty.c | if (current->signal & ~current->blocked) |
current | 83 | kernel/chr_drv/pty.c | while (!tty->link->count && !(current->signal & ~current->blocked)) |
current | 965 | kernel/chr_drv/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 966 | kernel/chr_drv/serial.c | current->timeout = jiffies + duration; |
current | 1093 | kernel/chr_drv/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1094 | kernel/chr_drv/serial.c | current->timeout = jiffies + info->close_delay; |
current | 1126 | kernel/chr_drv/serial.c | struct wait_queue wait = { current, NULL }; |
current | 1169 | kernel/chr_drv/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1181 | kernel/chr_drv/serial.c | if (current->signal & ~current->blocked) { |
current | 1191 | kernel/chr_drv/serial.c | current->state = TASK_RUNNING; |
current | 302 | kernel/chr_drv/tty_io.c | return (current->signal & ~current->blocked) ? -1 : 0; |
current | 686 | kernel/chr_drv/tty_io.c | return ((current->blocked & (1<<(sig-1))) || |
current | 687 | kernel/chr_drv/tty_io.c | (current->sigaction[sig-1].sa_handler == SIG_IGN)); |
current | 696 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 704 | kernel/chr_drv/tty_io.c | struct wait_queue wait = { current, NULL }; |
current | 710 | kernel/chr_drv/tty_io.c | minimum = time = current->timeout = 0; |
current | 715 | kernel/chr_drv/tty_io.c | current->timeout = 0xffffffff; |
current | 718 | kernel/chr_drv/tty_io.c | current->timeout = time + jiffies; |
current | 720 | kernel/chr_drv/tty_io.c | current->timeout = 0; |
current | 726 | kernel/chr_drv/tty_io.c | time = current->timeout = 0; |
current | 733 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 774 | kernel/chr_drv/tty_io.c | current->timeout = time+jiffies; |
current | 786 | kernel/chr_drv/tty_io.c | if (b-buf >= minimum || !current->timeout) |
current | 788 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 797 | kernel/chr_drv/tty_io.c | current->state = TASK_INTERRUPTIBLE; |
current | 800 | kernel/chr_drv/tty_io.c | current->state = TASK_RUNNING; |
current | 806 | kernel/chr_drv/tty_io.c | current->timeout = 0; |
current | 818 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 827 | kernel/chr_drv/tty_io.c | struct wait_queue wait = { current, NULL }; |
current | 831 | kernel/chr_drv/tty_io.c | current->state = TASK_INTERRUPTIBLE; |
current | 834 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 840 | kernel/chr_drv/tty_io.c | current->state = TASK_RUNNING; |
current | 861 | kernel/chr_drv/tty_io.c | struct wait_queue wait = { current, NULL }; |
current | 870 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 875 | kernel/chr_drv/tty_io.c | send_sig(SIGPIPE,current,0); |
current | 878 | kernel/chr_drv/tty_io.c | current->state = TASK_INTERRUPTIBLE; |
current | 883 | kernel/chr_drv/tty_io.c | current->state = TASK_RUNNING; |
current | 886 | kernel/chr_drv/tty_io.c | current->state = TASK_RUNNING; |
current | 915 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 936 | kernel/chr_drv/tty_io.c | (current->tty == dev) && |
current | 937 | kernel/chr_drv/tty_io.c | (tty->pgrp != current->pgrp)) |
current | 938 | kernel/chr_drv/tty_io.c | if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) |
current | 941 | kernel/chr_drv/tty_io.c | (void) kill_pg(current->pgrp, SIGTTIN, 1); |
current | 972 | kernel/chr_drv/tty_io.c | (current->tty == dev) && (tty->pgrp != current->pgrp)) { |
current | 973 | kernel/chr_drv/tty_io.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 976 | kernel/chr_drv/tty_io.c | (void) kill_pg(current->pgrp, SIGTTOU, 1); |
current | 1193 | kernel/chr_drv/tty_io.c | minor = current->tty; |
current | 1236 | kernel/chr_drv/tty_io.c | current->leader && |
current | 1237 | kernel/chr_drv/tty_io.c | current->tty<0 && |
current | 1239 | kernel/chr_drv/tty_io.c | current->tty = minor; |
current | 1240 | kernel/chr_drv/tty_io.c | tty->session = current->session; |
current | 1241 | kernel/chr_drv/tty_io.c | tty->pgrp = current->pgrp; |
current | 75 | kernel/chr_drv/tty_ioctl.c | struct wait_queue wait = { current, NULL }; |
current | 81 | kernel/chr_drv/tty_ioctl.c | current->counter = 0; /* make us low-priority */ |
current | 83 | kernel/chr_drv/tty_ioctl.c | current->state = TASK_INTERRUPTIBLE; |
current | 84 | kernel/chr_drv/tty_ioctl.c | if (current->signal & ~current->blocked) |
current | 91 | kernel/chr_drv/tty_ioctl.c | current->state = TASK_RUNNING; |
current | 141 | kernel/chr_drv/tty_ioctl.c | if (current->tty != channel) |
current | 143 | kernel/chr_drv/tty_ioctl.c | if (tty->pgrp <= 0 || tty->pgrp == current->pgrp) |
current | 145 | kernel/chr_drv/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 149 | kernel/chr_drv/tty_ioctl.c | (void) kill_pg(current->pgrp,SIGTTOU,1); |
current | 390 | kernel/chr_drv/tty_ioctl.c | if ((current->leader && current->tty < 0 && |
current | 393 | kernel/chr_drv/tty_ioctl.c | current->tty = dev; |
current | 394 | kernel/chr_drv/tty_ioctl.c | tty->session = current->session; |
current | 395 | kernel/chr_drv/tty_ioctl.c | tty->pgrp = current->pgrp; |
current | 405 | kernel/chr_drv/tty_ioctl.c | if ((current->tty < 0) || |
current | 406 | kernel/chr_drv/tty_ioctl.c | (current->tty != termios_dev) || |
current | 407 | kernel/chr_drv/tty_ioctl.c | (termios_tty->session != current->session)) |
current | 412 | kernel/chr_drv/tty_ioctl.c | if (session_of_pgrp(pgrp) != current->session) |
current | 480 | kernel/chr_drv/tty_ioctl.c | if (MINOR(file->f_rdev) != current->tty) |
current | 482 | kernel/chr_drv/tty_ioctl.c | current->tty = -1; |
current | 483 | kernel/chr_drv/tty_ioctl.c | if (current->leader) { |
current | 275 | kernel/chr_drv/vt.c | vt_cons[console].vt_pid = current->pid; |
current | 27 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
current | 28 | kernel/exit.c | (current->euid != p->euid) && (current->uid != p->uid) && !suser()) |
current | 65 | kernel/exit.c | if (p == current) { |
current | 262 | kernel/exit.c | return(kill_pg(current->pgrp,sig,0)); |
current | 265 | kernel/exit.c | if (*p && (*p)->pid > 1 && *p != current) { |
current | 334 | kernel/exit.c | free_page_tables(current); |
current | 336 | kernel/exit.c | if (current->filp[i]) |
current | 338 | kernel/exit.c | forget_original_parent(current); |
current | 339 | kernel/exit.c | iput(current->pwd); |
current | 340 | kernel/exit.c | current->pwd = NULL; |
current | 341 | kernel/exit.c | iput(current->root); |
current | 342 | kernel/exit.c | current->root = NULL; |
current | 343 | kernel/exit.c | iput(current->executable); |
current | 344 | kernel/exit.c | current->executable = NULL; |
current | 345 | kernel/exit.c | for (i=0; i < current->numlibraries; i++) { |
current | 346 | kernel/exit.c | iput(current->libraries[i].library); |
current | 347 | kernel/exit.c | current->libraries[i].library = NULL; |
current | 349 | kernel/exit.c | current->state = TASK_ZOMBIE; |
current | 350 | kernel/exit.c | current->exit_code = code; |
current | 351 | kernel/exit.c | current->rss = 0; |
current | 361 | kernel/exit.c | if ((current->p_pptr->pgrp != current->pgrp) && |
current | 362 | kernel/exit.c | (current->p_pptr->session == current->session) && |
current | 363 | kernel/exit.c | is_orphaned_pgrp(current->pgrp) && |
current | 364 | kernel/exit.c | has_stopped_jobs(current->pgrp)) { |
current | 365 | kernel/exit.c | kill_pg(current->pgrp,SIGHUP,1); |
current | 366 | kernel/exit.c | kill_pg(current->pgrp,SIGCONT,1); |
current | 369 | kernel/exit.c | send_sig (SIGCHLD, current->p_pptr, 1); |
current | 379 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
current | 380 | kernel/exit.c | current->p_cptr = p->p_osptr; |
current | 398 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
current | 399 | kernel/exit.c | (p->session == current->session) && |
current | 406 | kernel/exit.c | if (current->leader) { |
current | 410 | kernel/exit.c | if (current->tty >= 0) { |
current | 411 | kernel/exit.c | tty = TTY_TABLE(current->tty); |
current | 420 | kernel/exit.c | if (*p && (*p)->session == current->session) |
current | 423 | kernel/exit.c | if (last_task_used_math == current) |
current | 462 | kernel/exit.c | current->signal &= ~(1<<(SIGCHLD-1)); |
current | 464 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
current | 469 | kernel/exit.c | if (p->pgrp != current->pgrp) |
current | 489 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
current | 490 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
current | 491 | kernel/exit.c | current->cmin_flt += p->min_flt + p->cmin_flt; |
current | 492 | kernel/exit.c | current->cmaj_flt += p->maj_flt + p->cmaj_flt; |
current | 517 | kernel/exit.c | current->state=TASK_INTERRUPTIBLE; |
current | 518 | kernel/exit.c | oldblocked = current->blocked; |
current | 519 | kernel/exit.c | current->blocked &= ~(1<<(SIGCHLD-1)); |
current | 521 | kernel/exit.c | current->blocked = oldblocked; |
current | 522 | kernel/exit.c | if (current->signal & ~(current->blocked | (1<<(SIGCHLD-1)))) |
current | 40 | kernel/fork.c | if (task[i]->uid == current->uid) |
current | 86 | kernel/fork.c | *p = *current; |
current | 93 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
current | 129 | kernel/fork.c | if (last_task_used_math == current) |
current | 143 | kernel/fork.c | if (current->pwd) |
current | 144 | kernel/fork.c | current->pwd->i_count++; |
current | 145 | kernel/fork.c | if (current->root) |
current | 146 | kernel/fork.c | current->root->i_count++; |
current | 147 | kernel/fork.c | if (current->executable) |
current | 148 | kernel/fork.c | current->executable->i_count++; |
current | 149 | kernel/fork.c | for (i=0; i < current->numlibraries ; i++) |
current | 150 | kernel/fork.c | if (current->libraries[i].library) |
current | 151 | kernel/fork.c | current->libraries[i].library->i_count++; |
current | 154 | kernel/fork.c | p->counter = current->counter >> 1; |
current | 30 | kernel/ioport.c | int numl = sizeof(current->tss.io_bitmap) >> 2; |
current | 35 | kernel/ioport.c | printk("%s ", ios(current->tss.io_bitmap[j++])); |
current | 37 | kernel/ioport.c | printk("%s", ios(current->tss.io_bitmap[j++])); |
current | 59 | kernel/ioport.c | if (froml * 32 + tnum > sizeof(current->tss.io_bitmap) * 8 - 8) |
current | 67 | kernel/ioport.c | iop = (unsigned long *)current->tss.io_bitmap + froml; |
current | 37 | kernel/itimer.c | val = current->it_real_value; |
current | 38 | kernel/itimer.c | interval = current->it_real_incr; |
current | 41 | kernel/itimer.c | val = current->it_virt_value; |
current | 42 | kernel/itimer.c | interval = current->it_virt_incr; |
current | 45 | kernel/itimer.c | val = current->it_prof_value; |
current | 46 | kernel/itimer.c | interval = current->it_prof_incr; |
current | 84 | kernel/itimer.c | current->it_real_value = j; |
current | 85 | kernel/itimer.c | current->it_real_incr = i; |
current | 88 | kernel/itimer.c | current->it_virt_value = j; |
current | 89 | kernel/itimer.c | current->it_virt_incr = i; |
current | 92 | kernel/itimer.c | current->it_prof_value = j; |
current | 93 | kernel/itimer.c | current->it_prof_incr = i; |
current | 19 | kernel/panic.c | if (current == task[0]) |
current | 68 | kernel/printk.c | if (current->signal & ~current->blocked) |
current | 226 | kernel/ptrace.c | if (current->flags & PF_PTRACED) |
current | 229 | kernel/ptrace.c | current->flags |= PF_PTRACED; |
current | 239 | kernel/ptrace.c | if (child == current) |
current | 241 | kernel/ptrace.c | if ((!child->dumpable || (current->uid != child->euid) || |
current | 242 | kernel/ptrace.c | (current->gid != child->egid)) && !suser()) |
current | 248 | kernel/ptrace.c | if (child->p_pptr != current) { |
current | 250 | kernel/ptrace.c | child->p_pptr = current; |
current | 265 | kernel/ptrace.c | if (child->p_pptr != current) |
current | 58 | kernel/sched.c | struct task_struct *current = &init_task; |
current | 75 | kernel/sched.c | if (last_task_used_math == current) |
current | 83 | kernel/sched.c | last_task_used_math = current; |
current | 84 | kernel/sched.c | if (current->used_math) { |
current | 85 | kernel/sched.c | __asm__("frstor %0"::"m" (current->tss.i387)); |
current | 88 | kernel/sched.c | current->used_math=1; |
current | 146 | kernel/sched.c | current->state = TASK_INTERRUPTIBLE; |
current | 171 | kernel/sched.c | if (p->counter > current->counter) |
current | 197 | kernel/sched.c | if (p->counter > current->counter) |
current | 215 | kernel/sched.c | struct wait_queue wait = { current, NULL }; |
current | 219 | kernel/sched.c | if (current == task[0]) |
current | 221 | kernel/sched.c | current->state = state; |
current | 401 | kernel/sched.c | current->utime++; |
current | 403 | kernel/sched.c | if (current->it_virt_value && !(--current->it_virt_value)) { |
current | 404 | kernel/sched.c | current->it_virt_value = current->it_virt_incr; |
current | 405 | kernel/sched.c | send_sig(SIGVTALRM,current,1); |
current | 408 | kernel/sched.c | current->stime++; |
current | 410 | kernel/sched.c | if (prof_buffer && current != task[0]) { |
current | 418 | kernel/sched.c | if (current == task[0] || (--current->counter)<=0) { |
current | 419 | kernel/sched.c | current->counter=0; |
current | 431 | kernel/sched.c | if (current->it_prof_value && !(--current->it_prof_value)) { |
current | 432 | kernel/sched.c | current->it_prof_value = current->it_prof_incr; |
current | 433 | kernel/sched.c | send_sig(SIGPROF,current,1); |
current | 475 | kernel/sched.c | return current->pid; |
current | 480 | kernel/sched.c | return current->p_pptr->pid; |
current | 485 | kernel/sched.c | return current->uid; |
current | 490 | kernel/sched.c | return current->euid; |
current | 495 | kernel/sched.c | return current->gid; |
current | 500 | kernel/sched.c | return current->egid; |
current | 507 | kernel/sched.c | if (increment >= current->priority) |
current | 508 | kernel/sched.c | increment = current->priority-1; |
current | 509 | kernel/sched.c | current->priority -= increment; |
current | 518 | kernel/sched.c | printk("%d: pid=%d, state=%d, father=%d, child=%d, ",(p == current)?-nr:nr,p->pid, |
current | 26 | kernel/signal.c | return current->blocked; |
current | 31 | kernel/signal.c | int old=current->blocked; |
current | 33 | kernel/signal.c | current->blocked = newmask & _BLOCKABLE; |
current | 43 | kernel/signal.c | put_fs_long(current->blocked & current->signal, (unsigned long *)set); |
current | 55 | kernel/signal.c | mask = current->blocked; |
current | 56 | kernel/signal.c | current->blocked = set & _BLOCKABLE; |
current | 59 | kernel/signal.c | current->state = TASK_INTERRUPTIBLE; |
current | 85 | kernel/signal.c | p = signum - 1 + current->sigaction; |
current | 89 | kernel/signal.c | current->signal &= ~_S(signum); |
current | 95 | kernel/signal.c | current->signal &= ~_S(signum); |
current | 110 | kernel/signal.c | handler = (long) current->sigaction[signum-1].sa_handler; |
current | 111 | kernel/signal.c | current->sigaction[signum-1] = tmp; |
current | 123 | kernel/signal.c | p = signum - 1 + current->sigaction; |
current | 154 | kernel/signal.c | current->blocked = oldmask & _BLOCKABLE; |
current | 222 | kernel/signal.c | while ((signr = current->signal & ~current->blocked)) { |
current | 225 | kernel/signal.c | :"=m" (current->signal),"=r" (signr) |
current | 227 | kernel/signal.c | sa = current->sigaction + signr; |
current | 238 | kernel/signal.c | if (current->pid == 1) |
current | 245 | kernel/signal.c | current->state = TASK_STOPPED; |
current | 246 | kernel/signal.c | current->exit_code = signr; |
current | 247 | kernel/signal.c | if (!(current->p_pptr->sigaction[SIGCHLD-1].sa_flags & |
current | 249 | kernel/signal.c | send_sig(SIGCHLD, current->p_pptr, 1); |
current | 259 | kernel/signal.c | current->signal |= _S(signr & 0x7f); |
current | 280 | kernel/signal.c | current->blocked |= sa->sa_mask; |
current | 42 | kernel/sys.c | if (!who && p == current) |
current | 47 | kernel/sys.c | who = current->pgrp; |
current | 51 | kernel/sys.c | who = current->uid; |
current | 72 | kernel/sys.c | if ((*p)->uid != current->euid && |
current | 73 | kernel/sys.c | (*p)->uid != current->uid && !suser()) { |
current | 143 | kernel/sys.c | if (!current->vm86_info) { |
current | 147 | kernel/sys.c | memcpy_tofs(&(current->vm86_info->regs),regs,sizeof(*regs)); |
current | 148 | kernel/sys.c | put_fs_long(current->screen_bitmap,&(current->vm86_info->screen_bitmap)); |
current | 149 | kernel/sys.c | stack = current->tss.esp0; |
current | 150 | kernel/sys.c | current->tss.esp0 = current->saved_kernel_stack; |
current | 151 | kernel/sys.c | current->saved_kernel_stack = 0; |
current | 180 | kernel/sys.c | if (current->saved_kernel_stack) |
current | 198 | kernel/sys.c | current->saved_kernel_stack = current->tss.esp0; |
current | 199 | kernel/sys.c | current->tss.esp0 = (unsigned long) pt_regs; |
current | 200 | kernel/sys.c | current->vm86_info = v86; |
current | 201 | kernel/sys.c | current->screen_bitmap = info.screen_bitmap; |
current | 203 | kernel/sys.c | mark_screen_rdonly(current); |
current | 264 | kernel/sys.c | int old_rgid = current->gid; |
current | 267 | kernel/sys.c | if ((current->egid==rgid) || |
current | 270 | kernel/sys.c | current->gid = rgid; |
current | 276 | kernel/sys.c | (current->egid == egid) || |
current | 278 | kernel/sys.c | current->egid = egid; |
current | 279 | kernel/sys.c | current->sgid = egid; |
current | 281 | kernel/sys.c | current->gid = old_rgid; |
current | 294 | kernel/sys.c | current->gid = current->egid = current->sgid = gid; |
current | 295 | kernel/sys.c | else if ((gid == current->gid) || (gid == current->sgid)) |
current | 296 | kernel/sys.c | current->egid = gid; |
current | 356 | kernel/sys.c | int old_ruid = current->uid; |
current | 359 | kernel/sys.c | if ((current->euid==ruid) || |
current | 362 | kernel/sys.c | current->uid = ruid; |
current | 368 | kernel/sys.c | (current->euid == euid) || |
current | 370 | kernel/sys.c | current->euid = euid; |
current | 371 | kernel/sys.c | current->suid = euid; |
current | 373 | kernel/sys.c | current->uid = old_ruid; |
current | 394 | kernel/sys.c | current->uid = current->euid = current->suid = uid; |
current | 395 | kernel/sys.c | else if ((uid == current->uid) || (uid == current->suid)) |
current | 396 | kernel/sys.c | current->euid = uid; |
current | 417 | kernel/sys.c | put_fs_long(current->utime,(unsigned long *)&tbuf->tms_utime); |
current | 418 | kernel/sys.c | put_fs_long(current->stime,(unsigned long *)&tbuf->tms_stime); |
current | 419 | kernel/sys.c | put_fs_long(current->cutime,(unsigned long *)&tbuf->tms_cutime); |
current | 420 | kernel/sys.c | put_fs_long(current->cstime,(unsigned long *)&tbuf->tms_cstime); |
current | 430 | kernel/sys.c | oldbrk = current->brk; |
current | 431 | kernel/sys.c | rlim = current->rlim[RLIMIT_DATA].rlim_cur; |
current | 434 | kernel/sys.c | if (newbrk >= current->end_code && |
current | 435 | kernel/sys.c | newbrk - current->end_code <= rlim && |
current | 436 | kernel/sys.c | newbrk < current->start_stack - 16384) { |
current | 437 | kernel/sys.c | current->brk = newbrk; |
current | 447 | kernel/sys.c | return current->brk; |
current | 464 | kernel/sys.c | pid = current->pid; |
current | 466 | kernel/sys.c | pgid = current->pid; |
current | 471 | kernel/sys.c | ((task[i]->p_pptr == current) || |
current | 472 | kernel/sys.c | (task[i] == current))) { |
current | 475 | kernel/sys.c | if ((task[i]->session != current->session) || |
current | 477 | kernel/sys.c | (session_of_pgrp(pgid) != current->session))) |
current | 487 | kernel/sys.c | return current->pgrp; |
current | 492 | kernel/sys.c | if (current->leader && !suser()) |
current | 494 | kernel/sys.c | current->leader = 1; |
current | 495 | kernel/sys.c | current->session = current->pgrp = current->pid; |
current | 496 | kernel/sys.c | current->tty = -1; |
current | 497 | kernel/sys.c | return current->pgrp; |
current | 512 | kernel/sys.c | for (i = 0; (i < NGROUPS) && (current->groups[i] != NOGROUP); |
current | 517 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
current | 532 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
current | 535 | kernel/sys.c | current->groups[i] = NOGROUP; |
current | 543 | kernel/sys.c | if (grp == current->egid) |
current | 547 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
current | 549 | kernel/sys.c | if (current->groups[i] == grp) |
current | 616 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_cur, |
current | 618 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_max, |
current | 629 | kernel/sys.c | old = current->rlim + resource; |
current | 696 | kernel/sys.c | return getrusage(current, who, ru); |
current | 822 | kernel/sys.c | int old = current->umask; |
current | 824 | kernel/sys.c | current->umask = mask & 0777; |
current | 71 | kernel/traps.c | printk("base: %p, limit: %p\n",get_base(current->ldt[1]),get_limit(0x17)); |
current | 73 | kernel/traps.c | printk("Pid: %d, process nr: %d\n",current->pid,0xffff & i); |
current | 82 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 88 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 94 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 100 | kernel/traps.c | send_sig(SIGFPE, current, 1); |
current | 106 | kernel/traps.c | send_sig(SIGTRAP, current, 1); |
current | 117 | kernel/traps.c | send_sig(SIGTRAP, current, 1); |
current | 123 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 129 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 135 | kernel/traps.c | send_sig(SIGILL, current, 1); |
current | 141 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 153 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 159 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 165 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 178 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 153 | mm/memory.c | if (tsk == current) |
current | 176 | mm/memory.c | pg_dir = current->tss.cr3; |
current | 196 | mm/memory.c | old_pg_dir = current->tss.cr3; |
current | 263 | mm/memory.c | dir = (unsigned long *) (current->tss.cr3 + ((from >> 20) & 0xffc)); |
current | 287 | mm/memory.c | --current->rss; |
current | 319 | mm/memory.c | dir = (unsigned long *) (current->tss.cr3 + ((from >> 20) & 0xffc)); |
current | 344 | mm/memory.c | --current->rss; |
current | 350 | mm/memory.c | ++current->rss; |
current | 380 | mm/memory.c | dir = (unsigned long *) (current->tss.cr3 + ((from >> 20) & 0xffc)); |
current | 405 | mm/memory.c | --current->rss; |
current | 421 | mm/memory.c | ++current->rss; |
current | 607 | mm/memory.c | if (user_esp && tsk == current) |
current | 639 | mm/memory.c | do_wp_page(1,start,current,0); |
current | 777 | mm/memory.c | oom(current); |
current | 830 | mm/memory.c | if (tsk != current) |
current | 846 | mm/memory.c | oom(current); |
current | 871 | mm/memory.c | oom(current); |
current | 894 | mm/memory.c | current->screen_bitmap |= 1 << bit; |
current | 899 | mm/memory.c | do_wp_page(error_code, address, current, user_esp); |
current | 901 | mm/memory.c | do_no_page(error_code, address, current, user_esp); |
current | 904 | mm/memory.c | stack_limit = current->rlim[RLIMIT_STACK].rlim_cur; |
current | 907 | mm/memory.c | if (stack_limit >= current->start_stack) |
current | 909 | mm/memory.c | stack_limit = current->start_stack - stack_limit; |
current | 911 | mm/memory.c | send_sig(SIGSEGV, current, 1); |
current | 35 | mm/mmap.c | current->start_code + current->end_code) |
current | 51 | mm/mmap.c | if (fd >= NR_OPEN || fd < 0 || !(file = current->filp[fd])) |
current | 82 | mm/mmap.c | base = get_base(current->ldt[1]); /* cs */ |
current | 85 | mm/mmap.c | base = get_base(current->ldt[2]); /* ds */ |
current | 142 | mm/mmap.c | base = get_base(current->ldt[2]); /* map into ds */ |
current | 199 | mm/swap.c | oom(current); |
current | 92 | net/socket.c | if (!current->filp[fd]) |
current | 98 | net/socket.c | FD_CLR(fd, ¤t->close_on_exec); |
current | 99 | net/socket.c | current->filp[fd] = file; |
current | 139 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 177 | net/socket.c | SOCK_INODE(sock)->i_uid = current->euid; |
current | 178 | net/socket.c | SOCK_INODE(sock)->i_gid = current->egid; |
current | 190 | net/socket.c | if (current->signal & ~current->blocked) { |
current | 688 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 709 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 731 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 752 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 775 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 794 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 815 | net/socket.c | file = current->filp[fd]; |
current | 260 | net/tcp/packet.c | if (current->signal & ~current->blocked) |
current | 283 | net/tcp/raw.c | if (current->signal & ~current->blocked) |
current | 400 | net/tcp/raw.c | if (current->signal & ~current->blocked) |
current | 687 | net/tcp/sock.c | if (!suser() && current->pgrp != -arg && current->pid != arg) |
current | 1138 | net/tcp/sock.c | if (current->signal & ~current->blocked) |
current | 1287 | net/tcp/sock.c | if (current->signal & ~current->blocked) |
current | 1359 | net/tcp/sock.c | if (current->signal & ~current->blocked) |
current | 1481 | net/tcp/sock.c | send_sig (SIGPIPE, current, 1); |
current | 1511 | net/tcp/sock.c | send_sig (SIGPIPE, current, 1); |
current | 1541 | net/tcp/sock.c | send_sig (SIGPIPE, current, 1); |
current | 735 | net/tcp/tcp.c | send_sig (SIGPIPE, current, 0); |
current | 760 | net/tcp/tcp.c | if (current->signal & ~current->blocked) |
current | 859 | net/tcp/tcp.c | if (current->signal & ~current->blocked) |
current | 1166 | net/tcp/tcp.c | if (current->signal & ~current->blocked) |
current | 1324 | net/tcp/tcp.c | if (current->signal & ~current->blocked) |
current | 2681 | net/tcp/tcp.c | if (current->signal & ~current->blocked) |
current | 393 | net/tcp/udp.c | if (current->signal & ~current->blocked) |
current | 560 | net/tcp/udp.c | if (current->signal & ~current->blocked) |
current | 478 | net/unix.c | if (current->signal & ~current->blocked) { |
current | 559 | net/unix.c | if (current->signal & ~current->blocked) { |
current | 574 | net/unix.c | send_sig(SIGKILL,current,1); |
current | 612 | net/unix.c | send_sig(SIGPIPE,current,1); |
current | 624 | net/unix.c | if (current->signal & ~current->blocked) { |
current | 630 | net/unix.c | send_sig(SIGPIPE,current,1); |
current | 644 | net/unix.c | send_sig(SIGKILL,current,1); |
current | 653 | net/unix.c | send_sig(SIGPIPE,current,1); |