Linux Kernel
3.7.1
|
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) |
Definition at line 10 of file dm-log-userspace-transfer.h.
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.
Definition at line 282 of file dm-log-userspace-transfer.c.
Definition at line 259 of file dm-log-userspace-transfer.c.