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

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

Include dependency graph for ttyOpen.c:

Go to the source code of this file.


devcall ttyOpen (device *pdev, va_list ap)

Detailed Description


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

Definition in file ttyOpen.c.

Function Documentation

devcall ttyOpen ( device pdev,
va_list  ap 

Associate a TTY with a hardware device.

pdev TTY device table entry
ap 2nd argument is the device number for the hardware device
OK if TTY is opened properly, otherwise SYSERR

Definition at line 20 of file ttyOpen.c.

References ASSERT, dentry::controlblk, devtab, tty::icount, tty::iflags, isbaddev, tty::istart, NULL, tty::oflags, OK, tty::tty_dev, tty::tty_phw, ttyAlloc(), and va_arg.

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