Xen Test Framework
Functions | Variables
console.c File Reference
#include <xtf/types.h>
#include <xtf/atomic.h>
#include <xtf/bitops.h>
#include <xtf/console.h>
#include <xtf/hypercall.h>
#include <xtf/lib.h>
#include <xtf/libc.h>
#include <xtf/traps.h>
+ Include dependency graph for console.c:

Go to the source code of this file.

Functions

void register_console_callback (cons_output_cb fn)
 
static size_t pv_console_write_some (const char *buf, size_t len)
 
size_t pv_console_read_some (char *buf, size_t len)
 
static void pv_console_write (const char *buf, size_t len)
 
void init_pv_console (xencons_interface_t *ring, evtchn_port_t port)
 
void vprintk (const char *fmt, va_list args)
 
void printk (const char *fmt,...)
 

Variables

static cons_output_cb output_fns [3]
 
static unsigned int nr_cons_cb
 
static xencons_interface_tpv_ring
 
static evtchn_port_t pv_evtchn
 

Function Documentation

◆ register_console_callback()

void register_console_callback ( cons_output_cb  fn)

Definition at line 24 of file console.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pv_console_write_some()

static size_t pv_console_write_some ( const char *  buf,
size_t  len 
)
static

Definition at line 35 of file console.c.

+ Here is the caller graph for this function:

◆ pv_console_read_some()

size_t pv_console_read_some ( char *  buf,
size_t  len 
)

Definition at line 55 of file console.c.

+ Here is the call graph for this function:

◆ pv_console_write()

static void pv_console_write ( const char *  buf,
size_t  len 
)
static

Definition at line 79 of file console.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_pv_console()

void init_pv_console ( xencons_interface_t ring,
evtchn_port_t  port 
)

Definition at line 109 of file console.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vprintk()

void vprintk ( const char *  fmt,
va_list  args 
)

Definition at line 119 of file console.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ printk()

void printk ( const char *  fmt,
  ... 
)

Definition at line 134 of file console.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ output_fns

cons_output_cb output_fns[3]
static

Definition at line 17 of file console.c.

◆ nr_cons_cb

unsigned int nr_cons_cb
static

Definition at line 18 of file console.c.

◆ pv_ring

xencons_interface_t* pv_ring
static

Definition at line 21 of file console.c.

◆ pv_evtchn

evtchn_port_t pv_evtchn
static

Definition at line 22 of file console.c.