Visit Platform at http://www.platform.com

extern LIBVEM_API int vem_register2(vem_handle_t *, vem_registerreq_t *, vem_allocation_info_reply_t *, vem_container_info_reply_t *, vem_reclaim_info_reply_t *)

Register with VEM.

Routine registers the client with VEM via this handle. Only registered clients can request allocation and start workload containers.

VEM_REGISTER_RECOVERABLE flag setting is disabled now, "flags" in vem_registerreq is to be used in the future, for now it remains at 0. Now VEM will retain all the clients' allocation and container if the client was to disconnect before calling vem_unregister(), which means all the clients are recoverable. In this case, the name of the client must be unique system wide, and vem_allocation_info_reply and vem_container_info_reply must point to memory previously allocated. These two parameters will return the recovered allocation and containers from the previous connection.

Callback functions may be specified via cb. If cb is not NULL, callback functions specified will be invoked when resource is added, and reclaim request is issued. If cb is NULL, it will be the application¢s responsibility to periodically check the handle via vem_select/vem_read to get incoming messages and take action accordingly.

Returns:
0 on success, < 0 otherwise.


     
Date Modified: 26 Nov 2007
Platform Computing: www.platform.com

Platform Support: support@platform.com
Platform Information Development: doc@platform.com

Copyright © 2001-2007 Platform Computing Corporation. All rights reserved.