RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Files | Data Structures | Macros | Functions | Variables
POSIX Timer Private Support

Files

file  ptimer.c
 POSIX Timer Information with Zero Objects.
 

Data Structures

struct  POSIX_Timer_Control
 

Macros

#define POSIX_TIMER_INFORMATION_DEFINE(max)
 Macro to define the objects information for the POSIX Timer objects.
 

Functions

int _POSIX_Timer_Is_allowed (clockid_t clock_id)
 Follow POSIX or FACE Technical Standard on timer_create.
 

Variables

Objects_Information _POSIX_Timer_Information
 The POSIX Timer objects information.
 

Detailed Description

Macro Definition Documentation

◆ POSIX_TIMER_INFORMATION_DEFINE

#define POSIX_TIMER_INFORMATION_DEFINE (   max)
Value:
_POSIX_Timer, \
OBJECTS_POSIX_API, \
OBJECTS_POSIX_TIMERS, \
max, \
NULL \
)
#define OBJECTS_NO_STRING_NAME
Constant for the object information string name length to indicate that this object class has no stri...
Definition: objectdata.h:123
#define OBJECTS_INFORMATION_DEFINE(name, api, cls, type, max, nl, ex)
Statically initializes an objects information.
Definition: objectdata.h:449
Definition: timer.h:60

Macro to define the objects information for the POSIX Timer 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_Timer_Is_allowed()

int _POSIX_Timer_Is_allowed ( clockid_t  clock_id)

Follow POSIX or FACE Technical Standard on timer_create.

POSIX allows for the creation of timers based on CLOCK_REALTIME. This is viewed as a safety issue by the FACE Technical Standard and required to return an error. These are conflicting behaviors. This method is instanced by configuration when FACE conformant behavior is desired by the application.

Parameters
[in]clock_idis the clock ID to validate
Returns
0 if clock_id is allowed for use. Otherwise an errno value.