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 ) {
void _Objects_Free(Objects_Information *information, Objects_Control *the_object)
Frees an object.
Definition: objectfree.c:25
Definition: objectdata.h:39
Objects_Control * _Objects_Allocate_unprotected(Objects_Information *information)
Allocates an object without locking the allocator mutex.
Definition: objectallocate.c:33
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:25
Internal Support for POSIX Shared Memory.
POSIX API Implementation.
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
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
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_Information _POSIX_Shm_Information
The POSIX Shared Memory objects information.
#define _ISR_lock_ISR_enable(_context)
Restores the saved interrupt state of the ISR lock context.
Definition: isrlock.h:404
RTEMS_INLINE_ROUTINE void _Objects_Allocator_unlock(void)
Unlocks the object allocator mutex.
Definition: objectimpl.h:862
RTEMS_INLINE_ROUTINE void _Objects_Allocator_lock(void)
Locks the object allocator mutex.
Definition: objectimpl.h:850
An open file data structure.
Definition: libio.h:1320
Local ISR lock context for acquire and release pairs.
Definition: isrlock.h:65
Inlined Routines in the Object Handler.
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