UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Enumerations | Functions | Variables
proc.h File Reference

Go to the source code of this file.

Data Structures

struct  cpu
 
struct  context
 
struct  proc
 

Macros

#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
 

Macro Definition Documentation

#define NSEGS   7

Definition at line 2 of file proc.h.

Enumeration Type Documentation

enum procstate
Enumerator
UNUSED 
EMBRYO 
SLEEPING 
RUNNABLE 
RUNNING 
ZOMBIE 

Definition at line 52 of file proc.h.

Function Documentation

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

Variable Documentation

struct cpu cpus[NCPU]

Definition at line 14 of file mp.c.

int ncpu

Definition at line 17 of file mp.c.