Assigns a handle to an object.
cma_handle_assign( handle1, handle2);
Argument Data Type Accesshandle1 opaque cma_t_handle read handle2 opaque cma_t_handle write
#includevoid cma_handle_assign ( cma_t_handle *handle1, cma_t_handle *handle2);
When an object is created, the storage for the object is allocated and initialized, and a handle for the object is returned. The handle is the only means of referring to an object and performing routines on the object. Because objects are only accessed through handles, you can usually think of the handle as if it were the object itself.
Handles are meaningful only within a single process address space. Attempting to access an object from a process other than the one in which it was created-for example, by means of multiply mapped memory-can result in unpredictable results (it is incorrect, but the error is not necessarily checked).