Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dm-log-userspace-transfer.h File Reference

Go to the source code of this file.

Macros

#define DM_MSG_PREFIX   "dm-log-userspace"
 

Functions

int dm_ulog_tfr_init (void)
 
void dm_ulog_tfr_exit (void)
 
int dm_consult_userspace (const char *uuid, uint64_t luid, int request_type, char *data, size_t data_size, char *rdata, size_t *rdata_size)
 

Macro Definition Documentation

#define DM_MSG_PREFIX   "dm-log-userspace"

Definition at line 10 of file dm-log-userspace-transfer.h.

Function Documentation

int dm_consult_userspace ( const char uuid,
uint64_t  luid,
int  request_type,
char data,
size_t  data_size,
char rdata,
size_t rdata_size 
)

dm_consult_userspace : log's universal unique identifier (must be DM_UUID_LEN in size) : log's local unique identifier : found in include/linux/dm-log-userspace.h : data to tx to the server : size of data in bytes : place to put return data from server : value-result (amount of space given/amount of space used)

rdata_size is undefined on failure.

Memory used to communicate with userspace is zero'ed before populating to ensure that no unwanted bits leak from kernel space to user-space. All userspace log communications between kernel and user space go through this function.

Returns: 0 on success, -EXXX on failure

Definition at line 170 of file dm-log-userspace-transfer.c.

void dm_ulog_tfr_exit ( void  )

Definition at line 282 of file dm-log-userspace-transfer.c.

int dm_ulog_tfr_init ( void  )

Definition at line 259 of file dm-log-userspace-transfer.c.