libexplain  1.4.D001
Functions
libexplain/iocontrol/print_data.c File Reference
#include <libexplain/ac/sys/ioctl.h>
#include <libexplain/buffer/pointer.h>
#include <libexplain/iocontrol.h>
#include <libexplain/is_efault.h>
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_iocontrol_print_data (const explain_iocontrol_t *p, explain_string_buffer_t *sb, int errnum, int fildes, int request, const void *data)

Function Documentation

void explain_iocontrol_print_data ( const explain_iocontrol_t p,
struct explain_string_buffer_t sb,
int  errnum,
int  fildes,
int  request,
const void *  data 
)

The explain_iocontrol_print_data function is used to print a representation of the data argument passed to an ioctl(2) system call.

Parameters:
pPointer to the explain_iocontrol_t instance, rather like "this" in C++ code.
sbThe string buffer to print into.
errnumThe error number that caused all this, obtained from the global errno variable, possibly indirectly.
fildesThe original fildes, exactly as passed to the ioctl(2) system call.
requestThe original request, exactly as passed to the ioctl(2) system call.
dataThe original data, exactly as passed to the ioctl(2) system call.

Definition at line 28 of file print_data.c.