Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/tty/ttyAlloc.c File Reference

#include <kernel.h>
#include <device.h>
#include <tty.h>

Include dependency graph for ttyAlloc.c:

Go to the source code of this file.

Functions

struct ttyttyAlloc (void)


Detailed Description

ttyAlloc

Id
ttyAlloc.c 241 2007-07-13 22:24:20Z agember

Definition in file ttyAlloc.c.


Function Documentation

struct tty* ttyAlloc ( void   )  [read]

Allocate a tty structure.

Returns:
pointer to a TTY control block, NULL if none are free

Definition at line 17 of file ttyAlloc.c.

References disable(), NTTY, NULL, restore(), tty::state, TTY_STATE_ALLOC, TTY_STATE_FREE, and ttytab.

Referenced by ttyOpen().


Generated on Thu Oct 9 22:35:21 2008 for xinu by  doxygen 1.5.5