VirtualBox

Changeset 75879 in vbox for trunk/include


Ignore:
Timestamp:
Dec 2, 2018 6:39:16 PM (6 years ago)
Author:
vboxsync
Message:

Runtime: Introduce RTShMem* API for accessing shared memory objects with implementations for POSIX (via shm_*) and Windows (via CreateFileMapping)

Location:
trunk/include/iprt
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r75790 r75879  
    33953395/** @} */
    33963396
     3397
     3398/** @name RTShMem status codes
     3399 * @{ */
     3400/** Maximum number of mappings reached. */
     3401#define VERR_SHMEM_MAXIMUM_MAPPINGS_REACHED                     (-26000)
     3402/** @} */
     3403
    33973404/* SED-END */
    33983405
  • trunk/include/iprt/mangling.h

    r75652 r75879  
    19421942# define RTSha512t256ToString                           RT_MANGLER(RTSha512t256ToString)
    19431943# define RTSha512t256Update                             RT_MANGLER(RTSha512t256Update)
     1944# define RTShMemClose                                   RT_MANGLER(RTShMemClose)
     1945# define RTShMemMapRegion                               RT_MANGLER(RTShMemMapRegion)
     1946# define RTShMemOpen                                    RT_MANGLER(RTShMemOpen)
     1947# define RTShMemQuerySize                               RT_MANGLER(RTShMemQuerySize)
     1948# define RTShMemRefCount                                RT_MANGLER(RTShMemRefCount)
     1949# define RTShMemSetSize                                 RT_MANGLER(RTShMemSetSize)
     1950# define RTShMemUnmapRegion                             RT_MANGLER(RTShMemUnmapRegion)
    19441951# define RTSocketClose                                  RT_MANGLER(RTSocketClose)
    19451952# define RTSocketFromNative                             RT_MANGLER(RTSocketFromNative)
  • trunk/include/iprt/types.h

    r74672 r75879  
    25282528#define NIL_RTKRNLMODINFO                          ((RTKRNLMODINFO)~(uintptr_t)0);
    25292529
     2530/** Shared memory object handle. */
     2531typedef struct RTSHMEMINT                   RT_FAR *RTSHMEM;
     2532/** Pointer to a shared memory object handle. */
     2533typedef RTSHMEM                             RT_FAR *PRTSHMEM;
     2534/** A NIL shared memory object handle. */
     2535#define NIL_RTSHMEM                                ((RTSHMEM)~(uintptr_t)0)
     2536
    25302537/**
    25312538 * Handle type.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette