16 #ifndef _RTEMS_POSIX_SHMIMPL_H 17 #define _RTEMS_POSIX_SHMIMPL_H 54 size_t *name_length_p,
55 Objects_Get_by_name_error *error
71 gettimeofday( &now, 0 );
72 shm->atime = now.tv_sec;
80 gettimeofday( &now, 0 );
81 shm->mtime = now.tv_sec;
82 shm->ctime = now.tv_sec;
97 static inline int POSIX_Shm_Attempt_delete(
108 --shm->reference_count;
109 if ( shm->reference_count == 0 ) {
RTEMS_INLINE_ROUTINE Objects_Control * _Objects_Allocate_unprotected(Objects_Information *information)
Allocates an object without locking the allocator mutex.
Definition: objectimpl.h:874
Definition: objectdata.h:39
Internal Support for POSIX Shared Memory.
POSIX API Implementation.
#define _ISR_lock_ISR_enable(_context)
Restores the saved interrupt state of the ISR lock context.
Definition: isrlock.h:419
RTEMS_INLINE_ROUTINE void _Objects_Allocator_unlock(void)
Unlocks the object allocator mutex.
Definition: objectimpl.h:843
Control for a POSIX Shared Memory Object.
Definition: shm.h:111
int(* object_delete)(POSIX_Shm_Object *shm_obj)
Deletes the shm_obj.
Definition: shm.h:88
RTEMS_INLINE_ROUTINE void _POSIX_Shm_Free(POSIX_Shm_Control *the_shm)
POSIX Shared Memory Free.
Definition: shmimpl.h:45
Objects_Control * _Objects_Get_by_name(const Objects_Information *information, const char *name, size_t *name_length_p, Objects_Get_by_name_error *error)
Gets an object control block identified by its name.
Definition: objectnametoidstring.c:26
Objects_Information _POSIX_Shm_Information
The POSIX Shared Memory objects information.
RTEMS_INLINE_ROUTINE void _Objects_Free(Objects_Information *information, Objects_Control *the_object)
Frees an object.
Definition: objectimpl.h:930
An open file data structure.
Definition: libio.h:1320
Objects_Control * _Objects_Get(Objects_Id id, ISR_lock_Context *lock_context, const Objects_Information *information)
Maps the specified object identifier to the associated local object control block.
Definition: objectgetlocal.c:28
Local ISR lock context for acquire and release pairs.
Definition: isrlock.h:65
RTEMS_INLINE_ROUTINE void _Objects_Allocator_lock(void)
Locks the object allocator mutex.
Definition: objectimpl.h:831
Inlined Routines in the Object Handler.
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
const POSIX_Shm_Object_operations * ops
Implementation-specific operations on shm objects.
Definition: shm.h:56
#define NULL
Requests a GPIO pin group configuration.
Definition: bestcomm_api.h:77
File system location.
Definition: fs.h:53
Objects_Id id
Definition: objectdata.h:43