File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -194,12 +194,15 @@ to another process it can be opened by the :any:`umfOpenIPCHandle` function.
194
194
195
195
.. code-block :: c
196
196
197
+ umf_ipc_handler_handle_t ipc_handler = 0;
198
+ umf_result = umfPoolGetIPCHandler(consumer_pool, &ipc_handler);
199
+
197
200
void *mapped_buf = NULL;
198
- umf_result = umfOpenIPCHandle(consumer_pool , ipc_handle, &mapped_buf);
201
+ umf_result = umfOpenIPCHandle(ipc_handler , ipc_handle, &mapped_buf);
199
202
200
- The :any: `umfOpenIPCHandle ` function requires the memory pool handle and the IPC handle as input parameters. It maps
203
+ The :any: `umfOpenIPCHandle ` function requires the IPC handler and the IPC handle as input parameters. The IPC handler maps
201
204
the handle to the current process address space and returns the pointer to the same memory region that was allocated
202
- in the producer process.
205
+ in the producer process. To retrieve the IPC handler, the :any: ` umfPoolGetIPCHandler ` function is used.
203
206
204
207
.. note ::
205
208
The virtual addresses of the memory region referred to by the IPC handle may not be the same in the producer and consumer processes.
You can’t perform that action at this time.
0 commit comments