#include <stddef.h>
#include <stdarg.h>
#include <device.h>
#include <stdio.h>
#include <uart.h>

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 | |
Definition in file kprintf.c.
| syscall kgetc | ( | device * | pdev | ) |
kgetc - perform a synchronous kernel read from the console tty
| *pdev | pointer to device on which to write character | |
| c | character to write |
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
| *fmt | pointer to string being printed |
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().


| 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 |
Definition at line 21 of file kprintf.c.
References uart_csreg::ier, uart_csreg::lsr, NULL, SYSERR, and UART_LSR_TEMT.
Referenced by kprintf().

1.5.5