RTEMS  5.1
Files | Data Structures | Macros | Typedefs | Functions | Variables
POSIX Shared Memory Private Support

Files

file  shm.c
 POSIX Shared Memory Information with Zero Objects.
 

Data Structures

struct  POSIX_Shm_Object
 Encapsulation for the storage and manipulation of shm objects. More...
 
struct  POSIX_Shm_Object_operations
 Operations on POSIX Shared Memory Objects. More...
 
struct  POSIX_Shm_Control
 Control for a POSIX Shared Memory Object. More...
 

Macros

#define POSIX_SHM_INFORMATION_DEFINE(max)
 Macro to define the objects information for the POSIX Shared Memory objects. More...
 

Typedefs

typedef struct POSIX_Shm_Object_operations POSIX_Shm_Object_operations
 

Functions

int _POSIX_Shm_Object_create_from_workspace (POSIX_Shm_Object *shm_obj, size_t size)
 object_create operation for shm objects stored in RTEMS Workspace.
 
int _POSIX_Shm_Object_delete_from_workspace (POSIX_Shm_Object *shm_obj)
 object_delete operation for shm objects stored in RTEMS Workspace.
 
int _POSIX_Shm_Object_resize_from_workspace (POSIX_Shm_Object *shm_obj, size_t size)
 object_resize operation for shm objects stored in RTEMS Workspace.
 
int _POSIX_Shm_Object_read_from_workspace (POSIX_Shm_Object *shm_obj, void *buf, size_t count)
 object_read operation for shm objects stored in RTEMS Workspace.
 
void * _POSIX_Shm_Object_mmap_from_workspace (POSIX_Shm_Object *shm_obj, size_t len, int prot, off_t off)
 object_mmap operation for shm objects stored in RTEMS Workspace.
 
int _POSIX_Shm_Object_create_from_heap (POSIX_Shm_Object *shm_obj, size_t size)
 object_create operation for shm objects stored in C program heap.
 
int _POSIX_Shm_Object_delete_from_heap (POSIX_Shm_Object *shm_obj)
 object_delete operation for shm objects stored in C program heap.
 
int _POSIX_Shm_Object_resize_from_heap (POSIX_Shm_Object *shm_obj, size_t size)
 object_resize operation for shm objects stored in C program heap.
 
int _POSIX_Shm_Object_read_from_heap (POSIX_Shm_Object *shm_obj, void *buf, size_t count)
 object_read operation for shm objects stored in C program heap.
 
void * _POSIX_Shm_Object_mmap_from_heap (POSIX_Shm_Object *shm_obj, size_t len, int prot, off_t off)
 object_mmap operation for shm objects stored in C program heap.
 

Variables

const POSIX_Shm_Object_operations _POSIX_Shm_Object_operations
 
Objects_Information _POSIX_Shm_Information
 The POSIX Shared Memory objects information.
 
RTEMS_INLINE_ROUTINE POSIX_Shm_Control_POSIX_Shm_Allocate_unprotected (void)
 
RTEMS_INLINE_ROUTINE void _POSIX_Shm_Free (POSIX_Shm_Control *the_shm)
 POSIX Shared Memory Free. More...
 
RTEMS_INLINE_ROUTINE POSIX_Shm_Control_POSIX_Shm_Get_by_name (const char *name, size_t *name_length_p, Objects_Get_by_name_error *error)
 
RTEMS_INLINE_ROUTINE void _POSIX_Shm_Update_atime (POSIX_Shm_Control *shm)
 
RTEMS_INLINE_ROUTINE void _POSIX_Shm_Update_mtime_ctime (POSIX_Shm_Control *shm)
 

Detailed Description

Internal implementation support for POSIX shared memory.

Macro Definition Documentation

◆ POSIX_SHM_INFORMATION_DEFINE

#define POSIX_SHM_INFORMATION_DEFINE (   max)
Value:
_POSIX_Shm, \
OBJECTS_POSIX_API, \
OBJECTS_POSIX_SHMS, \
max, \
_POSIX_PATH_MAX, \
NULL \
)
Control for a POSIX Shared Memory Object.
Definition: shm.h:111
#define OBJECTS_INFORMATION_DEFINE(name, api, cls, type, max, nl, ex)
Statically initializes an objects information.
Definition: objectdata.h:427
#define NULL
Requests a GPIO pin group configuration.
Definition: bestcomm_api.h:77

Macro to define the objects information for the POSIX Shared Memory objects.

This macro should only be used by <rtems/confdefs.h>.

Parameters
maxThe configured object maximum (the OBJECTS_UNLIMITED_OBJECTS flag may be set).

Function Documentation

◆ _POSIX_Shm_Free()

RTEMS_INLINE_ROUTINE void _POSIX_Shm_Free ( POSIX_Shm_Control the_shm)

POSIX Shared Memory Free.

This routine frees a shm control block.