/* process1 */
void* objAndList;
size_t objAndListSize;
err = NvSciBufIpcExportAttrListAndObj(
bufObj, /* bufObj to be exported
(the reconciled list is inside it) */
NvSciBufAccessPerm_ReadOnly, /* permissions we want the
receiver to have */
ipcEndpoint, /* IpcEndpoint via which the
object is to be exported */
&objAndList, /* descriptor of the object
and list to be communicated */
&objAndListSize); /* size of the descriptor */
/* send via Ipc */
/* process2 */
void* objAndList;
size_t objAndListSize;
err = NvSciBufIpcImportAttrListAndObj(
module, /* NvSciBufModule use to
create original unreconciled lists in the waiter */
ipcEndpoint, /* ipcEndpoint from which the
descriptor was received */
objAndList, /* the desciptor of the buf obj
and associated reconciled attribute list received from the signaler */
objAndListSize, /* size of the descriptor */
&AttrList1, /* the array of original
unreconciled lists prepared in this process */
1, /* size of the array */
NvSciBufAccessPerm_ReadOnly, /* permissions expected by
this process */
10000U, /* timeout in microseconds.
Some primitives might require time to transport all needed resources */
&bufObj); /* buf object generated from
the descriptor */
/* use the buf object */
NvSciBufObjFree(bufObj);