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.


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

Detailed Description

kputc, kprintf

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

*fmt pointer to string being printed
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

*pdev pointer to device on which to write character
c character to write
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