2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c7/smi_pshm.h File Reference


Detailed Description

header for above [Sec. 7.14.2]

Definition in file smi_pshm.h.

Go to the source code of this file.

Functions

SMIQsmi_open_pshm (const char *name, SMIENTITY entity, size_t msgsize)
bool smi_close_pshm (SMIQ *sqp)
bool smi_send_getaddr_pshm (SMIQ *sqp, struct client_id *client, void **addr)
bool smi_send_release_pshm (SMIQ *sqp)
bool smi_receive_getaddr_pshm (SMIQ *sqp, void **addr)
bool smi_receive_release_pshm (SMIQ *sqp)


Function Documentation

bool smi_close_pshm SMIQ sqp  ) 
 

Definition at line 202 of file smi_pshm.c.

References SMIQ_PSHM::client::cl_fd, SMIQ_PSHM::client::cl_mem, SMIQ_PSHM::client::cl_pid, close(), MAX_CLIENTS, MEM_SIZE, mkshm_name_client(), mkshm_name_server(), munmap(), op_semi(), SEMI_DESTROY, SEMI_READ, SEMI_WRITE, SERVER_NAME_MAX, shm_unlink(), SMI_CLIENT, SMI_SERVER, SMIQ_PSHM::sq_clients, SMIQ_PSHM::sq_entity, SMIQ_PSHM::sq_msgsize, SMIQ_PSHM::sq_srv_fd, and SMIQ_PSHM::sq_srv_mem.

Referenced by smi_open_pshm().

SMIQ* smi_open_pshm const char *  name,
SMIENTITY  entity,
size_t  msgsize
 

Definition at line 143 of file smi_pshm.c.

References SMIQ_PSHM::client::cl_fd, SMIQ_PSHM::client::cl_mem, close(), EC_CLEANUP_BGN, EC_CLEANUP_END, ec_cmp, EC_FAIL, ec_neg1, ec_null, errno, ftruncate(), getpid(), MEM_SIZE, mkshm_name_client(), mkshm_name_server(), mmap(), PERM_FILE, sem_init(), SERVER_NAME_MAX, shm_open(), shm_unlink(), shared_mem::sm_sem_r, shared_mem::sm_sem_w, smi_close_pshm(), SMI_SERVER, SMIQ, SMIQ_PSHM::sq_clients, SMIQ_PSHM::sq_entity, SMIQ_PSHM::sq_msgsize, SMIQ_PSHM::sq_name, SMIQ_PSHM::sq_srv_fd, and SMIQ_PSHM::sq_srv_mem.

bool smi_receive_getaddr_pshm SMIQ sqp,
void **  addr
 

Definition at line 286 of file smi_pshm.c.

References SMIQ_PSHM::client::cl_mem, EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, op_semi(), SEMI_READ, SEMI_WAIT, shared_mem::sm_msg, SMI_SERVER, SMIQ_PSHM::sq_clients, SMIQ_PSHM::sq_entity, and SMIQ_PSHM::sq_srv_mem.

bool smi_receive_release_pshm SMIQ sqp  ) 
 

Definition at line 304 of file smi_pshm.c.

References SMIQ_PSHM::client::cl_mem, EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, op_semi(), SEMI_POST, SEMI_WRITE, SMI_SERVER, SMIQ_PSHM::sq_clients, SMIQ_PSHM::sq_entity, and SMIQ_PSHM::sq_srv_mem.

bool smi_send_getaddr_pshm SMIQ sqp,
struct client_id *  client,
void **  addr
 

Definition at line 241 of file smi_pshm.c.

References smi_msg::client_id::c_id1, EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, ec_null, get_client(), getpid(), op_semi(), SEMI_WAIT, SEMI_WRITE, shared_mem::sm_msg, smi_msg::smi_client, SMI_CLIENT, SMI_SERVER, SMIQ_PSHM::sq_client, SMIQ_PSHM::sq_entity, and SMIQ_PSHM::sq_srv_mem.

bool smi_send_release_pshm SMIQ sqp  ) 
 

Definition at line 266 of file smi_pshm.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, ec_null, get_client(), op_semi(), SEMI_POST, SEMI_READ, SMI_SERVER, SMIQ_PSHM::sq_client, SMIQ_PSHM::sq_entity, and SMIQ_PSHM::sq_srv_mem.


Generated on Fri Apr 23 10:57:09 2004 for AUP2 Example Source by doxygen 1.3.1