spdk.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [SPDK] Shared memory allocated spdk_dma_malloc from among process
@ 2022-10-20 15:32 Lego Lin
  0 siblings, 0 replies; only message in thread
From: Lego Lin @ 2022-10-20 15:32 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 692 bytes --]

Hi, all:

Can anyone give me some guidelines that how to share memory from
spdk_dma_malloc among 2 processes?

I know how to use shm_open / mmap to create and share memory among
processes.
It looks like DPDK memzone can be shared among processes through it's
internal API (rte_memzone_lookup / dump_memzone)
But I didn't find obvious clues about sharing memory from spdk_dma_malloc
to another process.
My idea is Process A get the physical address of memory from
spdk_dma_malloc.
Process A put these physical address to a shared memory.
Process B get physical address from shared memory and map them to virtual
space of process B.

Is there other ways to do this?

Thanks

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-20 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 15:32 [SPDK] Shared memory allocated spdk_dma_malloc from among process Lego Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).