next up previous contents index
Next: 10.5.4 cpu_info_min: return the Up: (X86) Processor Identification and Previous: 10.5.2 cpuid: identify the

10.5.3 cpu_info_format: output a cpu_info structure in ASCII form

 

SYNOPSIS

#include <oskit/x86/cpuid.h>

void cpu_info_format(struct cpu_info *info, void (*formatter)(void *data, const char *fmt, ...), void *data);

DESCRIPTION

This function takes the information in a cpu_info structure and formats it as human-readable text. The formatter should be a pointer to a printf-like function to be called to format the output data. The formatter function may be called multiple times to output all the relevant information.

PARAMETERS

info
The filled-in CPU information structure to output.
formatter
The printf-style formatted output function to call. It will be called with the opaque data pointer provided, a standard C format string (fmt), and optionally a set of data items to format.
data
An opaque pointer which is simply passed on to the formatter function.



University of Utah Flux Research Group