]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/prog_guide/multi_proc_support.rst
ipc: add warnings about not using IPC with memory API
[dpdk.git] / doc / guides / prog_guide / multi_proc_support.rst
index 9660979243aa2e3599f2125a60d33fa24b6ad0ac..63d08b60900da654d3a2c0b81d44e7aa16a3d8c7 100644 (file)
@@ -318,6 +318,11 @@ supported. However, since sending messages (not requests) does not involve an
 IPC thread, sending messages while processing another message or request is
 supported.
 
+Since the memory sybsystem uses IPC internally, memory allocations and IPC must
+not be mixed: it is not safe to use IPC inside a memory-related callback, nor is
+it safe to allocate/free memory inside IPC callbacks. Attempting to do so may
+lead to a deadlock.
+
 Asynchronous request callbacks may be triggered either from IPC thread or from
 interrupt thread, depending on whether the request has timed out. It is
 therefore suggested to avoid waiting for interrupt-based events (such as alarms)