Main Page | Modules | Data Structures | File List | Data Fields | Globals

src/client/sysint/client-state-machine.c File Reference

Routines for state machine processing on clients. More...

#include <string.h>
#include <assert.h>
#include "pvfs2-sysint.h"
#include "pint-sysint-utils.h"
#include "pvfs2-internal.h"
#include "pint-cached-config.h"
#include "PINT-reqproto-encode.h"
#include "state-machine.h"
#include "client-state-machine.h"
#include "pvfs2-debug.h"
#include "job.h"
#include "gossip.h"
#include "pvfs2-util.h"
#include "id-generator.h"
#include "ncache.h"
#include "acache.h"
#include "pint-event.h"
#include "pint-hint.h"

Functions

void PINT_sys_release_smcb (PINT_smcb *smcb)
PVFS_error PINT_client_state_machine_post (PINT_smcb *smcb, PVFS_sys_op_id *op_id, void *user_ptr)
PVFS_error PINT_client_io_cancel (PVFS_sys_op_id id)
PVFS_error PINT_client_state_machine_test (PVFS_sys_op_id op_id, int *error_code)
PVFS_error PINT_client_state_machine_testsome (PVFS_sys_op_id *op_id_array, int *op_count, void **user_ptr_array, int *error_code_array, int timeout_ms)
PVFS_error PINT_client_wait_internal (PVFS_sys_op_id op_id, const char *in_op_str, int *out_error, const char *in_class_str)
void PINT_sys_release (PVFS_sys_op_id op_id)


Detailed Description

Routines for state machine processing on clients.


Function Documentation

PVFS_error PINT_client_io_cancel PVFS_sys_op_id  id  ) 
 

Cancels in progress I/O operations.

Returns:
0 on success, -PVFS_error on failure.

Here is the call graph for this function:

PVFS_error PINT_client_state_machine_post PINT_smcb *  smcb,
PVFS_sys_op_id op_id,
void *  user_ptr
 

Adds a state machine into the list of machines that are being actively serviced.

Here is the call graph for this function:

PVFS_error PINT_client_state_machine_test PVFS_sys_op_id  op_id,
int *  error_code
 

Checks for completion of a specific state machine.

If specific state machine has not completed, progress is made on all posted state machines.

Here is the call graph for this function:

PVFS_error PINT_client_state_machine_testsome PVFS_sys_op_id op_id_array,
int *  op_count,
void **  user_ptr_array,
int *  error_code_array,
int  timeout_ms
 

Checks completion of one or more state machines.

If none of the state machines listed in op_id_array have completed, then progress is made on all posted state machines.

PVFS_error PINT_client_wait_internal PVFS_sys_op_id  op_id,
const char *  in_op_str,
int *  out_error,
const char *  in_class_str
 

Continually test on a specific state machine until it completes.

This is what is called when PINT_sys_wait or PINT_mgmt_wait is used.

Here is the call graph for this function:

void PINT_sys_release PVFS_sys_op_id  op_id  ) 
 

Finds state machine referenced by op_id and releases resources associated with it.

Here is the call graph for this function:

void PINT_sys_release_smcb PINT_smcb *  smcb  )  [static]
 

releases resources associated with an smcb.

Can be used both on immediate completion and asynchronous completion


Generated on Tue Feb 7 02:43:51 2012 for PVFS by doxygen 1.3.5