taglinefilesource code
task36include/linux/sched.h#define FIRST_TASK task[0]
task37include/linux/sched.h#define LAST_TASK task[NR_TASKS-1]
task187include/linux/sched.h/* proc links*/ &init_task.task,NULL,NULL,NULL,NULL, \
task214include/linux/sched.hextern struct task_struct *task[NR_TASKS];
task264include/linux/sched.h"d" (_TSS(n)),"c" ((long) task[n]) \
task67kernel/exit.cif (task[i] == p) {
task68kernel/exit.ctask[i] = NULL;
task94kernel/exit.cif (task[i] == p)
task113kernel/exit.cif (!task[i])
task115kernel/exit.cif (bad_task_ptr(task[i]->p_pptr))
task117kernel/exit.ctask[i]->pid);
task118kernel/exit.cif (bad_task_ptr(task[i]->p_cptr))
task120kernel/exit.ctask[i]->pid);
task121kernel/exit.cif (bad_task_ptr(task[i]->p_ysptr))
task123kernel/exit.ctask[i]->pid);
task124kernel/exit.cif (bad_task_ptr(task[i]->p_osptr))
task126kernel/exit.ctask[i]->pid);
task127kernel/exit.cif (task[i]->p_pptr == task[i])
task129kernel/exit.cif (task[i]->p_cptr == task[i])
task131kernel/exit.cif (task[i]->p_ysptr == task[i])
task133kernel/exit.cif (task[i]->p_osptr == task[i])
task135kernel/exit.cif (task[i]->p_osptr) {
task136kernel/exit.cif (task[i]->p_pptr != task[i]->p_osptr->p_pptr)
task139kernel/exit.ctask[i]->pid, task[i]->p_osptr->pid,
task140kernel/exit.ctask[i]->p_osptr->p_pptr->pid);
task141kernel/exit.cif (task[i]->p_osptr->p_ysptr != task[i])
task144kernel/exit.ctask[i]->pid, task[i]->p_osptr->pid);
task146kernel/exit.cif (task[i]->p_ysptr) {
task147kernel/exit.cif (task[i]->p_pptr != task[i]->p_ysptr->p_pptr)
task150kernel/exit.ctask[i]->pid, task[i]->p_osptr->pid,
task151kernel/exit.ctask[i]->p_osptr->p_pptr->pid);
task152kernel/exit.cif (task[i]->p_ysptr->p_osptr != task[i])
task155kernel/exit.ctask[i]->pid, task[i]->p_ysptr->pid);
task157kernel/exit.cif (task[i]->p_cptr) {
task158kernel/exit.cif (task[i]->p_cptr->p_pptr != task[i])
task161kernel/exit.ctask[i]->pid, task[i]->p_cptr->pid);
task162kernel/exit.cif (task[i]->p_cptr->p_ysptr)
task165kernel/exit.ctask[i]->pid, task[i]->p_cptr->pid);
task229kernel/exit.cstruct task_struct **p = NR_TASKS + task;
task341kernel/exit.cp->p_pptr = task[1];
task342kernel/exit.cp->p_osptr = task[1]->p_cptr;
task343kernel/exit.ctask[1]->p_cptr->p_ysptr = p;
task344kernel/exit.ctask[1]->p_cptr = p;
task346kernel/exit.ctask[1]->signal |= (1<<(SIGCHLD-1));
task76kernel/fork.cif (task[i] && ((task[i]->pid == last_pid) ||
task77kernel/fork.c(task[i]->pgrp == last_pid)))
task80kernel/fork.cif (!task[i])
task107kernel/fork.ctask[nr] = p;
task152kernel/fork.ctask[nr] = NULL;
task19kernel/panic.cif (current == task[0])
task41kernel/ptrace.cif (task[i] != NULL && (task[i]->pid == pid))
task53kernel/ptrace.cstatic inline int get_stack_long(struct task_struct *task, int offset)
task57kernel/ptrace.cstack = (unsigned char *)task->tss.esp0;
task68kernel/ptrace.cstatic inline int put_stack_long(struct task_struct *task, int offset,
task73kernel/ptrace.cstack = (unsigned char *) task->tss.esp0;
task238kernel/ptrace.cchild = task[childno];
task250kernel/ptrace.cres = read_long(task[childno], addr, &tmp);
task273kernel/ptrace.creturn write_long(task[childno],addr,data);
task55kernel/sched.cif (task[i])
task56kernel/sched.cshow_task(i,task[i]);
task67kernel/sched.cstruct task_struct task;
task81kernel/sched.cstruct task_struct *current = &(init_task.task);
task84kernel/sched.cstruct task_struct * task[NR_TASKS] = {&(init_task.task), };
task152kernel/sched.cp = &task[NR_TASKS];
task195kernel/sched.cwhile (wakeup_ptr && wakeup_ptr != task[0]) {
task204kernel/sched.cwakeup_ptr->next_wait = task[0];
task216kernel/sched.cif (current == task[0])
task220kernel/sched.ctask[0]->next_wait = NULL;
task225kernel/sched.cif (current->next_wait != task[0])
task478kernel/sched.cset_tss_desc(gdt+FIRST_TSS_ENTRY,&(init_task.task.tss));
task479kernel/sched.cset_ldt_desc(gdt+FIRST_LDT_ENTRY,&(init_task.task.ldt));
task482kernel/sched.ctask[i] = NULL;
task363kernel/sys.cif (task[i] && (task[i]->pid == pid) &&
task364kernel/sys.c((task[i]->p_pptr == current) || 
task365kernel/sys.c(task[i] == current))) {
task366kernel/sys.cif (task[i]->leader)
task368kernel/sys.cif ((task[i]->session != current->session) ||
task372kernel/sys.ctask[i]->pgrp = pgid;
task172mm/swap.cif (!(p = task[dir_entry >> 4])) {