My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Functions
otz_client.h File Reference
#include <uuid_structure.h>

Go to the source code of this file.

Classes

struct  otz_client_encode_cmd
 Encode command structure. More...
 
struct  ser_ses_id
 Session details structure. More...
 
struct  otz_session_shared_mem_info
 Shared memory information for the session. More...
 
struct  otz_smc_cdata
 Shared memory used for smc processing. More...
 

Macros

#define OTZ_CLIENT_FULL_PATH_DEV_NAME   "/dev/otz_client"
 
#define OTZ_CLIENT_DEV   "otz_client"
 
#define OTZ_CLIENT_IOC_MAGIC   0x775B777F /* "OTZ Client" */
 
#define TDEBUG(fmt, args...)
 
#define TERR(fmt, args...)
 
#define OTZ_CLIENT_IOCTL_SEND_CMD_REQ   _IOWR(OTZ_CLIENT_IOC_MAGIC, 3, struct otz_client_encode_cmd)
 
#define OTZ_CLIENT_IOCTL_SES_OPEN_REQ   _IOW(OTZ_CLIENT_IOC_MAGIC, 4, struct ser_ses_id)
 
#define OTZ_CLIENT_IOCTL_SES_CLOSE_REQ   _IOWR(OTZ_CLIENT_IOC_MAGIC, 5, struct ser_ses_id)
 
#define OTZ_CLIENT_IOCTL_SHR_MEM_FREE_REQ   _IOWR(OTZ_CLIENT_IOC_MAGIC, 6, struct otz_session_shared_mem_info )
 
#define OTZ_CLIENT_IOCTL_ENC_UINT32   _IOWR(OTZ_CLIENT_IOC_MAGIC, 7, struct otz_client_encode_cmd)
 
#define OTZ_CLIENT_IOCTL_ENC_ARRAY   _IOWR(OTZ_CLIENT_IOC_MAGIC, 8, struct otz_client_encode_cmd)
 
#define OTZ_CLIENT_IOCTL_ENC_ARRAY_SPACE   _IOWR(OTZ_CLIENT_IOC_MAGIC, 9, struct otz_client_encode_cmd)
 
#define OTZ_CLIENT_IOCTL_ENC_MEM_REF   _IOWR(OTZ_CLIENT_IOC_MAGIC, 10, struct otz_client_encode_cmd)
 
#define OTZ_CLIENT_IOCTL_DEC_UINT32   _IOWR(OTZ_CLIENT_IOC_MAGIC, 11, struct otz_client_encode_cmd)
 
#define OTZ_CLIENT_IOCTL_DEC_ARRAY_SPACE   _IOWR(OTZ_CLIENT_IOC_MAGIC, 12, struct otz_client_encode_cmd)
 
#define OTZ_CLIENT_IOCTL_OPERATION_RELEASE   _IOWR(OTZ_CLIENT_IOC_MAGIC, 13, struct otz_client_encode_cmd)
 
#define OTZ_CLIENT_IOCTL_SHR_MEM_ALLOCATE_REQ   _IOWR(OTZ_CLIENT_IOC_MAGIC, 14, struct otz_session_shared_mem_info)
 
#define OTZ_CLIENT_IOCTL_GET_DECODE_TYPE   _IOWR(OTZ_CLIENT_IOC_MAGIC, 15, struct otz_client_encode_cmd)
 

Functions

void * memncpy (void *dst, const void *src, unsigned int count, unsigned int dst_len, unsigned int src_len)
 
void strncpy_safe (char *dst, const char *src, size_t n)
 copies n size of string src to string dst More...
 

Macro Definition Documentation

#define OTZ_CLIENT_DEV   "otz_client"
#define OTZ_CLIENT_FULL_PATH_DEV_NAME   "/dev/otz_client"
#define OTZ_CLIENT_IOC_MAGIC   0x775B777F /* "OTZ Client" */
#define OTZ_CLIENT_IOCTL_DEC_ARRAY_SPACE   _IOWR(OTZ_CLIENT_IOC_MAGIC, 12, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_DEC_UINT32   _IOWR(OTZ_CLIENT_IOC_MAGIC, 11, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_ENC_ARRAY   _IOWR(OTZ_CLIENT_IOC_MAGIC, 8, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_ENC_ARRAY_SPACE   _IOWR(OTZ_CLIENT_IOC_MAGIC, 9, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_ENC_MEM_REF   _IOWR(OTZ_CLIENT_IOC_MAGIC, 10, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_ENC_UINT32   _IOWR(OTZ_CLIENT_IOC_MAGIC, 7, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_GET_DECODE_TYPE   _IOWR(OTZ_CLIENT_IOC_MAGIC, 15, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_OPERATION_RELEASE   _IOWR(OTZ_CLIENT_IOC_MAGIC, 13, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_SEND_CMD_REQ   _IOWR(OTZ_CLIENT_IOC_MAGIC, 3, struct otz_client_encode_cmd)
#define OTZ_CLIENT_IOCTL_SES_CLOSE_REQ   _IOWR(OTZ_CLIENT_IOC_MAGIC, 5, struct ser_ses_id)
#define OTZ_CLIENT_IOCTL_SES_OPEN_REQ   _IOW(OTZ_CLIENT_IOC_MAGIC, 4, struct ser_ses_id)
#define OTZ_CLIENT_IOCTL_SHR_MEM_ALLOCATE_REQ   _IOWR(OTZ_CLIENT_IOC_MAGIC, 14, struct otz_session_shared_mem_info)
#define OTZ_CLIENT_IOCTL_SHR_MEM_FREE_REQ   _IOWR(OTZ_CLIENT_IOC_MAGIC, 6, struct otz_session_shared_mem_info )
#define TDEBUG (   fmt,
  args... 
)
#define TERR (   fmt,
  args... 
)
Value:
printk(KERN_ERR "%s(%i, %s): " fmt "\n", \
__func__, current->pid, current->comm, ## args)
struct sw_alloced_area current
Definition: sw_buddy.h:40

Function Documentation

void* memncpy ( void *  dst,
const void *  src,
unsigned int  count,
unsigned int  dst_len,
unsigned int  src_len 
)
void strncpy_safe ( char *  dst,
const char *  src,
size_t  n 
)

copies n size of string src to string dst

Parameters
dstdestination string
srcsource string
nlength of string to be copied