summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_detachsharedmemory.rst
blob: 19547629709676593aa7ee21eed3ea226e0b5e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PR_DetachSharedMemory
=====================

Unmaps a shared memory segment identified by name.


Syntax
------

.. code::

   #include <prshm.h>

   NSPR_API( PRStatus )
     PR_DetachSharedMemory(
        PRSharedMemory *shm,
        void  *addr
   );


Parameters
~~~~~~~~~~

The function has these parameters:

shm
   The handle returned from :ref:`PR_OpenSharedMemory`.
addr
   The address to which the shared memory segment is mapped.


Returns
~~~~~~~

:ref:`PRStatus`.