Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/system/kprintf.c File Reference

#include <kernel.h>
#include <vararg.h>
#include <device.h>
#include <stdio.h>
#include <uart.h>

Include dependency graph for kprintf.c:

Go to the source code of this file.

Functions

syscall kputc (device *pdev, unsigned char c)
syscall kprintf (char *fmt,...)


Detailed Description

kputc, kprintf

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

Definition in file kprintf.c.


Function Documentation

syscall kprintf ( char *  fmt,
  ... 
)

kprintf - kernel printf: formatted, unbuffered output to CONSOLE

Parameters:
*fmt pointer to string being printed
Returns:
OK on success

Definition at line 55 of file kprintf.c.

References _doprnt(), devtab, kputc(), OK, SERIAL0, va_end, and va_start.

Referenced by nulluser(), xdone(), and xtrap().

syscall kputc ( device pdev,
unsigned char  c 
)

kputc - perform a synchronous kernel write to the console tty

Parameters:
*pdev pointer to device on which to write character
c character to write
Returns:
c on success, SYSERR on failure

Definition at line 21 of file kprintf.c.

References dentry::controlblk, uart::cout, dentry::csr, uart::csr, uart_csreg::ier, uart_csreg::lsr, NULL, SYSERR, UART_LSR_TEMT, and uarttab.

Referenced by kprintf().


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