RTEMS CPU Kit with SuperCore
4.11.3
|
Interface to Kernel Print Methods. More...
#include <stdarg.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | BSP_output_char_function_type) (char c) |
This type defines the prototype for the BSP provided method to print a single character. More... | |
typedef int(* | BSP_polling_getchar_function_type) (void) |
This type defines the prototype for the BSP provided method to input a single character. More... | |
typedef int(* | rtems_printk_plugin_t) (void *, const char *format,...) |
Type definition for function which can be plugged in to certain reporting routines to redirect the output. More... | |
Functions | |
int | getchark (void) |
Get Character (kernel I/O) More... | |
void | vprintk (const char *fmt, va_list ap) |
Variable Argument printk() More... | |
void | printk (const char *fmt,...) |
Kernel Print. More... | |
void | putk (const char *s) |
Kernel Put String. More... | |
void | rtems_putc (char c) |
Kernel Put Character. More... | |
int | printk_plugin (void *context, const char *fmt,...) |
Reporting Methods printk() Plugin. More... | |
int | rtems_printf_plugin (void *context, const char *fmt,...) |
Reporting Methods printf() Plugin. More... | |
Variables | |
BSP_output_char_function_type | BSP_output_char |
This variable points to the BSP provided method to output a character for the purposes of debug output. | |
BSP_polling_getchar_function_type | BSP_poll_char |
This variable points to the BSP provided method to input a character for the purposes of debug input. | |
Interface to Kernel Print Methods.
This include file defines the interface to kernel print methods.
typedef void(* BSP_output_char_function_type) (char c) |
This type defines the prototype for the BSP provided method to print a single character.
It is assumed to be polled.
typedef int(* BSP_polling_getchar_function_type) (void) |
This type defines the prototype for the BSP provided method to input a single character.
It is assumed to be polled.
typedef int(* rtems_printk_plugin_t) (void *, const char *format,...) |
Type definition for function which can be plugged in to certain reporting routines to redirect the output.
Methods following this prototype may be passed into RTEMS reporting functions that allow their output to be redirected. In particular, the cpu usage, period usage, and stack usage reporting functions use this.
If the user provides their own "printf plugin", then they may redirect those reports as they see fit.
int getchark | ( | void | ) |
Get Character (kernel I/O)
This method polls for a key in the simplest possible fashion from whatever the debug console device is.
References BSP_poll_char.
void printk | ( | const char * | fmt, |
... | |||
) |
Kernel Print.
This method allows the user to perform a debug printk().
[in] | fmt | is a printf()-style format string |
Kernel Print.
References vprintk().
Referenced by _CPU_Exception_frame_print(), _POSIX_Message_queue_Delete(), and rtems_test_fatal_extension().
int printk_plugin | ( | void * | context, |
const char * | fmt, | ||
... | |||
) |
Reporting Methods printk() Plugin.
[in] | context | points to a user defined context. |
[in] | fmt | is a printf()-style format string |
References vprintk().
Referenced by rtems_cpu_usage_top(), rtems_rate_monotonic_report_statistics(), rtems_stack_checker_report_usage(), and rtems_test_fatal_extension().
void putk | ( | const char * | s | ) |
Kernel Put String.
This method allows the user to perform a debug puts().
[in] | s | is the string to print |
Kernel Put String.
puts) function requiring minimal infrastrure.
int rtems_printf_plugin | ( | void * | context, |
const char * | fmt, | ||
... | |||
) |
Reporting Methods printf() Plugin.
This is a standard plug-in to support using printf() for output instead of printk().
[in] | context | points to a user defined context. |
[in] | fmt | is a printf()-style format string |
void rtems_putc | ( | char | c | ) |
Kernel Put Character.
This method allows the user to perform a debug putc().
[in] | c | is the character to print |
void vprintk | ( | const char * | fmt, |
va_list | ap | ||
) |
Variable Argument printk()
This method allows the user to access printk() functionality with a va_list style argument.
[in] | fmt | is a printf()-style format string |
[in] | ap | is a va_list pointer to arguments |
Variable Argument printk()
Arguments: as in printf: fmt - format string, ... - unnamed arguments.
Referenced by printk(), and printk_plugin().