xv6/proc.h File Reference

Go to the source code of this file.

Data Structures

struct  context
struct  proc
struct  cpu

Defines

#define SEG_KCODE   1
#define SEG_KDATA   2
#define SEG_KCPU   3
#define SEG_UCODE   4
#define SEG_UDATA   5
#define SEG_TSS   6
#define NSEGS   7

Enumerations

enum  procstate {
  UNUSED, EMBRYO, SLEEPING, RUNNABLE,
  RUNNING, ZOMBIE
}

Functions

struct cpu *cpu asm ("%gs:0")
struct proc *proc asm ("%gs:4")

Variables

struct cpu cpus [NCPU]
int ncpu


Define Documentation

#define NSEGS   7

Definition at line 9 of file proc.h.

#define SEG_KCODE   1

Definition at line 3 of file proc.h.

Referenced by ksegment(), and tvinit().

#define SEG_KCPU   3

Definition at line 5 of file proc.h.

Referenced by ksegment().

#define SEG_KDATA   2

Definition at line 4 of file proc.h.

Referenced by ksegment(), and usegment().

#define SEG_TSS   6

Definition at line 8 of file proc.h.

Referenced by usegment().

#define SEG_UCODE   4

Definition at line 6 of file proc.h.

Referenced by usegment(), and userinit().

#define SEG_UDATA   5

Definition at line 7 of file proc.h.

Referenced by usegment(), and userinit().


Enumeration Type Documentation

enum procstate

Enumerator:
UNUSED 
EMBRYO 
SLEEPING 
RUNNABLE 
RUNNING 
ZOMBIE 

Definition at line 27 of file proc.h.


Function Documentation

struct proc* proc asm ( "%gs:4"   )  [read]

struct cpu* cpu asm ( "%gs:0"   )  [read]


Variable Documentation

struct cpu cpus[NCPU]

Definition at line 13 of file mp.c.

Referenced by bootothers(), ksegment(), mpbcpu(), mpinit(), and mpmain().

int ncpu

Definition at line 16 of file mp.c.

Referenced by bootothers(), ideinit(), and mpinit().


Generated on Fri Jan 7 12:25:49 2011 for xv6 by  doxygen 1.5.6