kprintf.c File Reference

Implements the functions: kputc, kprintf. More...

#include <stddef.h>
#include <stdarg.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)
 kputc - perform a synchronous kernel write to the console tty
syscall kgetc (device *pdev)
 kgetc - perform a synchronous kernel read from the console tty
syscall kprintf (char *fmt,...)
 kprintf - kernel printf: formatted, unbuffered output to CONSOLE


Detailed Description

Implements the functions: kputc, kprintf.

Id
kprintf.c 358 2007-10-11 20:56:25Z agember

Definition in file kprintf.c.


Function Documentation

syscall kgetc ( device *  pdev  ) 

kgetc - perform a synchronous kernel read from 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 56 of file kprintf.c.

References uart_csreg::ier, uart_csreg::lsr, NULL, SYSERR, and UART_LSR_DR.

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 86 of file kprintf.c.

References _doprnt(), kputc(), and OK.

Referenced by allocRxBuffer(), backplaneInit(), dispatch(), etherControl(), etherInit(), exception(), libq_printqueue(), nulluser(), waitOnBit(), and xdone().

Here is the call graph for this function:

Here is the caller graph for this function:

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 uart_csreg::ier, uart_csreg::lsr, NULL, SYSERR, and UART_LSR_TEMT.

Referenced by kprintf().

Here is the caller graph for this function:


Generated on Wed Aug 27 06:08:37 2008 for Embedded XINU by  doxygen 1.5.5