Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/shell/xsh_ps.c File Reference

#include <kernel.h>
#include <proc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Include dependency graph for xsh_ps.c:

Go to the source code of this file.

Functions

command xsh_ps (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[])


Detailed Description

xsh_ps

Id
xsh_ps.c 226 2007-07-12 01:18:27Z mschul

Definition in file xsh_ps.c.


Function Documentation

command xsh_ps ( ushort  stdin,
ushort  stdout,
ushort  stderr,
ushort  nargs,
char *  args[] 
)

Shell command (ps) outputs process table information.

Parameters:
stdin descriptor of input device
stdout descriptor of output device
stderr descriptor of error device
nargs number of arguments in args array
args array of arguments

Definition at line 23 of file xsh_ps.c.

References fprintf(), pentry::name, NPROC, OK, pentry::parent, PRFREE, pentry::prio, proctab, pentry::state, pentry::stkbase, pentry::stklen, pentry::stkptr, strncmp(), and SYSERR.


Generated on Thu Oct 9 22:34:55 2008 for xinu by  doxygen 1.5.5