libexplain  1.4.D001
Functions
libexplain/buffer/device_name.h File Reference
#include <libexplain/ac/sys/stat.h>
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

int explain_buffer_device_name (explain_string_buffer_t *sb, dev_t dev, struct stat *st)

Function Documentation

int explain_buffer_device_name ( explain_string_buffer_t sb,
dev_t  dev,
struct stat *  st 
)

The explain_buffer_device_name function may be used locate a device's name an print it into the supplied buffer.

Parameters:
sbThe string buffer to print into.
devThe device to look for.
stThe file info that provoked the request.
Returns:
0 on success, -1 on error

Definition at line 130 of file device_name.c.