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

Go to the source code of this file.

Classes

struct  otz_mutex_test_global
 global variables for the task should be defined as a member of the global structure More...
 

Typedefs

typedef struct
otz_mutex_test_global 
otz_mutex_test_global
 global variables for the task should be defined as a member of the global structure More...
 

Functions

int mutex_test_task_init (sa_config_t *psa_config)
 : Mutex test task init More...
 
int mutex_test_task_exit (void *data)
 Mutex test task exit. More...
 
void mutex_test_task (int task_id, sw_tls *tls)
 Mutex test task entry point. More...
 
int process_otz_mutex_test_svc (u32 svc_cmd_id, void *req_buf, u32 req_buf_len, void *resp_buf, u32 res_buf_len, struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len)
 Process mutex test data commands. More...
 
int process_otz_mutex_test_cmd (void *req_buf, u32 req_buf_len, void *res_buf, u32 res_buf_len, struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len)
 Test the mutex operations. More...
 

Typedef Documentation

global variables for the task should be defined as a member of the global structure

Function Documentation

void mutex_test_task ( int  task_id,
sw_tls tls 
)

Mutex test task entry point.

This function implements the commands to test the mutex and semaphore operations

Parameters
task_idTask identifier
tlsPointer to task local storage

This function implements the commands to test the mutex and semaphore operations

Parameters
task_idtask identifier
tlsPointer to task local storage
int mutex_test_task_exit ( void *  data)

Mutex test task exit.

This function gets called before the task deletion

Parameters
dataPrivate data which need to be freed.
Returns
otz_return_t: OTZ_OK
OTZ_FAIL
int mutex_test_task_init ( sa_config_t psa_config)

: Mutex test task init

This function initializes Mutex test task parameters

Parameters
psa_configConfiguration parameter for the task and its get called before the task creation
Returns
otz_return_t: OTZ_OK
OTZ_* - An implementation-defined error code for any other error.
int process_otz_mutex_test_cmd ( void *  req_buf,
u32  req_buf_len,
void *  res_buf,
u32  res_buf_len,
struct otzc_encode_meta meta_data,
u32 *  ret_res_buf_len 
)

Test the mutex operations.

This function tests the functionality of mutex and semaphores

Parameters
req_bufVirtual address of the request buffer
req_buf_lenRequest buffer length
res_bufVirtual address of the response buffer
res_buf_lenResponse buffer length
meta_dataVirtual address of the meta data of the encoded data
ret_res_buf_lenReturn length of the response buffer
Returns
SMC return codes: SMC_SUCCESS: API processed successfully.
SMC_*: An implementation-defined error code for any other error.
int process_otz_mutex_test_svc ( u32  svc_cmd_id,
void *  req_buf,
u32  req_buf_len,
void *  resp_buf,
u32  res_buf_len,
struct otzc_encode_meta meta_data,
u32 *  ret_res_buf_len 
)

Process mutex test data commands.

This function process the mutex test data commands

Parameters
svc_cmd_idCommand identifer to process the mutex test data command
req_bufVirtual address of the request buffer
req_buf_lenRequest buffer length
resp_bufVirtual address of the response buffer
res_buf_lenResponse buffer length
meta_dataVirtual address of the meta data of the encoded data
ret_res_buf_lenReturn length of the response buffer
Returns
SMC return codes: SMC_SUCCESS: Mutex test service command processed successfully.
SMC_*: An implementation-defined error code for any other error.

This function process the mutex test data commands

Parameters
svc_cmd_idCommand identifer to process the mutex test data command
req_bufVirtual address of the request buffer
req_buf_lenRequest buffer length
resp_bufVirtual address of the response buffer
res_buf_lenResponse buffer length
meta_dataVirtual address of the meta data of the encoded data
ret_res_buf_lenReturn length of the response buffer
Returns
SMC return codes: SMC_SUCCESS: Mutex test data command processed successfully.
SMC_*: An implementation-defined error code for any other error.