summaryrefslogtreecommitdiffstats
path: root/c-user/rtems_data_types.rst
blob: 0a5461c1747a443ac21efdd5bc74e0dd43af95e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
.. SPDX-License-Identifier: CC-BY-SA-4.0

.. Copyright (C) 2008, 2021 embedded brains GmbH & Co. KG
.. Copyright (C) 1988, 2017 On-Line Applications Research Corporation (OAR)

.. This file is part of the RTEMS quality process and was automatically
.. generated.  If you find something that needs to be fixed or
.. worded better please post a report or patch to an RTEMS mailing list
.. or raise a bug report:
..
.. https://www.rtems.org/bugs.html
..
.. For information on updating and regenerating please refer to the How-To
.. section in the Software Requirements Engineering chapter of the
.. RTEMS Software Engineering manual.  The manual is provided as a part of
.. a release.  For development sources please refer to the online
.. documentation at:
..
.. https://docs.rtems.org

.. index:: RTEMS Data Types
.. index:: data types

RTEMS Data Types
****************

.. _Introduction:

Introduction
============

This chapter contains a complete list of the RTEMS primitive data types in
alphabetical order.  This is intended to be an overview and the user is
encouraged to look at the appropriate chapters in the manual for more
information about the usage of the various data types.

.. _ListOfDataTypes:

List of Data Types
==================

The following is a complete list of the RTEMS primitive data types in
alphabetical order:

.. Generated from spec:/rtems/io/if/bsp-output-char-function-type

.. index:: BSP_output_char_function_type

.. _InterfaceBSPOutputCharFunctionType:

BSP_output_char_function_type
-----------------------------

Polled character output functions shall have this type.

.. Generated from spec:/rtems/io/if/bsp-polling-getchar-function-type

.. index:: BSP_polling_getchar_function_type

.. _InterfaceBSPPollingGetcharFunctionType:

BSP_polling_getchar_function_type
---------------------------------

Polled character input functions shall have this type.

.. Generated from spec:/rtems/timer/if/classes

.. index:: Timer_Classes

.. _InterfaceTimerClasses:

Timer_Classes
-------------

The timer class indicates how the timer was most recently fired.

.. rubric:: ENUMERATORS:

TIMER_DORMANT
    This timer class indicates that the timer was never in use.

TIMER_INTERVAL
    This timer class indicates that the timer is currently in use as an
    interval timer which will fire in the context of the clock tick
    :term:`ISR`.

TIMER_INTERVAL_ON_TASK
    This timer class indicates that the timer is currently in use as an
    interval timer which will fire in the context of the Timer Server task.

TIMER_TIME_OF_DAY
    This timer class indicates that the timer is currently in use as an time of
    day timer which will fire in the context of the clock tick :term:`ISR`.

TIMER_TIME_OF_DAY_ON_TASK
    This timer class indicates that the timer is currently in use as an time of
    day timer which will fire in the context of the Timer Server task.

.. Generated from spec:/rtems/config/if/api-table

.. index:: rtems_api_configuration_table

.. _InterfaceRtemsApiConfigurationTable:

rtems_api_configuration_table
-----------------------------

This structure contains a summary of the Classic API configuration.

.. rubric:: MEMBERS:

maximum_tasks
    This member contains the maximum number of Classic API Tasks configured for
    this application. See :ref:`CONFIGURE_MAXIMUM_TASKS`.

notepads_enabled
    This member is true, if the Classic API Notepads are enabled, otherwise it
    is false.

maximum_timers
    This member contains the maximum number of Classic API Timers configured
    for this application. See :ref:`CONFIGURE_MAXIMUM_TIMERS`.

maximum_semaphores
    This member contains the maximum number of Classic API Semaphores
    configured for this application. See :ref:`CONFIGURE_MAXIMUM_SEMAPHORES`.

maximum_message_queues
    This member contains the maximum number of Classic API Message Queues
    configured for this application. See
    :ref:`CONFIGURE_MAXIMUM_MESSAGE_QUEUES`.

maximum_partitions
    This member contains the maximum number of Classic API Partitions
    configured for this application. See :ref:`CONFIGURE_MAXIMUM_PARTITIONS`.

maximum_regions
    This member contains the maximum number of Classic API Regions configured
    for this application. See :ref:`CONFIGURE_MAXIMUM_REGIONS`.

maximum_ports
    This member contains the maximum number of Classic API Dual-Ported Memories
    configured for this application. See :ref:`CONFIGURE_MAXIMUM_PORTS`.

maximum_periods
    This member contains the maximum number of Classic API Rate Monotonic
    Periods configured for this application. See
    :ref:`CONFIGURE_MAXIMUM_PERIODS`.

maximum_barriers
    This member contains the maximum number of Classic API Barriers configured
    for this application. See :ref:`CONFIGURE_MAXIMUM_BARRIERS`.

number_of_initialization_tasks
    This member contains the number of Classic API Initialization Tasks
    configured for this application. See
    :ref:`CONFIGURE_RTEMS_INIT_TASKS_TABLE`.

User_initialization_tasks_table
    This member contains the pointer to Classic API Initialization Tasks Table
    of this application. See :ref:`CONFIGURE_RTEMS_INIT_TASKS_TABLE`.

.. rubric:: DESCRIPTION:

Use :ref:`InterfaceRtemsConfigurationGetRtemsApiConfiguration` to get the
configuration table.

.. Generated from spec:/rtems/signal/if/asr

.. index:: rtems_asr

.. _InterfaceRtemsAsr:

rtems_asr
---------

This type defines the return type of routines which are used to process
asynchronous signals.

.. rubric:: NOTES:

This type can be used to document asynchronous signal routines in the source
code.

.. Generated from spec:/rtems/signal/if/asr-entry

.. index:: rtems_asr_entry

.. _InterfaceRtemsAsrEntry:

rtems_asr_entry
---------------

This type defines the prototype of routines which are used to process
asynchronous signals.

.. Generated from spec:/rtems/fatal/if/assert-context

.. index:: rtems_assert_context

.. _InterfaceRtemsAssertContext:

rtems_assert_context
--------------------

This structure provides the context in which an assertion failed.

.. rubric:: MEMBERS:

file
    This member provides the file name of the source code file containing the
    failed assertion statement.

line
    This member provides the line number in the source code file containing the
    failed assertion statement.

function
    This member provides the function name containing the failed assertion
    statement.

failed_expression
    This member provides the expression of the failed assertion statement.

.. Generated from spec:/rtems/attr/if/attribute

.. index:: rtems_attribute

.. _InterfaceRtemsAttribute:

rtems_attribute
---------------

This type represents Classic API attributes.

.. rubric:: NOTES:

Attributes are primarily used when creating objects.

.. Generated from spec:/rtems/io/if/device-driver

.. index:: rtems_device_driver

.. _InterfaceRtemsDeviceDriver:

rtems_device_driver
-------------------

This type shall be used in device driver entry declarations and definitions.

.. rubric:: NOTES:

Device driver entries return an :c:type:`rtems_status_code` status code. This
type definition helps to document device driver entries in the source code.

.. Generated from spec:/rtems/io/if/device-driver-entry

.. index:: rtems_device_driver_entry

.. _InterfaceRtemsDeviceDriverEntry:

rtems_device_driver_entry
-------------------------

Device driver entries shall have this type.

.. Generated from spec:/rtems/io/if/device-major-number

.. index:: rtems_device_major_number

.. _InterfaceRtemsDeviceMajorNumber:

rtems_device_major_number
-------------------------

This integer type represents the major number of devices.

.. rubric:: NOTES:

The major number of a device is determined by
:ref:`InterfaceRtemsIoRegisterDriver` and the application configuration (see
:ref:`CONFIGURE_MAXIMUM_DRIVERS`) .

.. Generated from spec:/rtems/io/if/device-minor-number

.. index:: rtems_device_minor_number

.. _InterfaceRtemsDeviceMinorNumber:

rtems_device_minor_number
-------------------------

This integer type represents the minor number of devices.

.. rubric:: NOTES:

The minor number of devices is managed by the device driver.

.. Generated from spec:/rtems/io/if/driver-address-table

.. index:: rtems_driver_address_table

.. _InterfaceRtemsDriverAddressTable:

rtems_driver_address_table
--------------------------

This structure contains the device driver entries.

.. rubric:: MEMBERS:

initialization_entry
    This member is the device driver initialization entry. This entry is called
    by :ref:`InterfaceRtemsIoInitialize`.

open_entry
    This member is the device driver open entry. This entry is called by
    :ref:`InterfaceRtemsIoOpen`.

close_entry
    This member is the device driver close entry. This entry is called by
    :ref:`InterfaceRtemsIoClose`.

read_entry
    This member is the device driver read entry. This entry is called by
    :ref:`InterfaceRtemsIoRead`.

write_entry
    This member is the device driver write entry. This entry is called by
    :ref:`InterfaceRtemsIoWrite`.

control_entry
    This member is the device driver control entry. This entry is called by
    :ref:`InterfaceRtemsIoControl`.

.. rubric:: DESCRIPTION:

This structure is used to register a device driver via
:ref:`InterfaceRtemsIoRegisterDriver`.

.. Generated from spec:/rtems/event/if/set

.. index:: rtems_event_set

.. _InterfaceRtemsEventSet:

rtems_event_set
---------------

This integer type represents a bit field which can hold exactly 32 individual
events.

.. Generated from spec:/rtems/fatal/if/exception-frame

.. index:: rtems_exception_frame

.. _InterfaceRtemsExceptionFrame:

rtems_exception_frame
---------------------

This structure represents an architecture-dependent exception frame.

.. Generated from spec:/rtems/userext/if/table

.. index:: rtems_extensions_table

.. _InterfaceRtemsExtensionsTable:

rtems_extensions_table
----------------------

The extensions table contains a set of extensions which may be registered in
the system through the :ref:`CONFIGURE_INITIAL_EXTENSIONS` application
configuration option or the :ref:`InterfaceRtemsExtensionCreate` directive.

.. Generated from spec:/rtems/userext/if/fatal-code

.. index:: rtems_fatal_code

.. _InterfaceRtemsFatalCode:

rtems_fatal_code
----------------

This integer type represents system termination codes.

.. rubric:: DESCRIPTION:

This integer type is large enough to store a 32-bit integer or a pointer.

.. rubric:: NOTES:

The interpretation of a system termination code depends on the system
termination source, see :ref:`InterfaceRtemsFatalSource`.

.. Generated from spec:/rtems/userext/if/fatal

.. index:: rtems_fatal_extension

.. _InterfaceRtemsFatalExtension:

rtems_fatal_extension
---------------------

Fatal extensions are invoked when the system should terminate.

.. rubric:: NOTES:

The fatal extensions are invoked in :term:`extension forward order`.

The fatal extension should be extremely careful with respect to the RTEMS
directives it calls.  Depending on the system termination source, the system
may be in an undefined and corrupt state.

It is recommended to register fatal extensions through :term:`initial extension
sets`, see :ref:`CONFIGURE_INITIAL_EXTENSIONS`.

.. Generated from spec:/rtems/userext/if/fatal-source

.. index:: rtems_fatal_source

.. _InterfaceRtemsFatalSource:

rtems_fatal_source
------------------

This enumeration represents system termination sources.

.. rubric:: NOTES:

The system termination code may provide additional information depending on the
system termination source, see :ref:`InterfaceRtemsFatalCode`.

.. Generated from spec:/rtems/type/if/id

.. index:: rtems_id

.. _InterfaceRtemsId:

rtems_id
--------

This type represents RTEMS object identifiers.

.. Generated from spec:/rtems/task/if/initialization-table

.. index:: rtems_initialization_tasks_table

.. _InterfaceRtemsInitializationTasksTable:

rtems_initialization_tasks_table
--------------------------------

This structure defines the properties of the Classic API user initialization
task.

.. rubric:: MEMBERS:

name
    This member defines the task name.

stack_size
    This member defines the task stack size in bytes.

initial_priority
    This member defines the initial task priority.

attribute_set
    This member defines the attribute set of the task.

entry_point
    This member defines the entry point of the task.

mode_set
    This member defines the initial modes of the task.

argument
    This member defines the entry point argument of the task.

.. Generated from spec:/rtems/intr/if/attributes

.. index:: rtems_interrupt_attributes

.. _InterfaceRtemsInterruptAttributes:

rtems_interrupt_attributes
--------------------------

This structure provides the attributes of an interrupt vector.

.. rubric:: MEMBERS:

is_maskable
    This member is true, if the interrupt vector is maskable by
    :ref:`InterfaceRtemsInterruptLocalDisable`, otherwise it is false.
    Interrupt vectors which are not maskable by
    :ref:`InterfaceRtemsInterruptLocalDisable` should be used with care since
    they cannot use most operating system services.

can_enable
    This member is true, if the interrupt vector can be enabled by
    :ref:`InterfaceRtemsInterruptVectorEnable`, otherwise it is false. When an
    interrupt vector can be enabled, this means that the enabled state can
    always be changed from disabled to enabled.  For an interrupt vector which
    can be enabled it follows that it may be enabled.

maybe_enable
    This member is true, if the interrupt vector may be enabled by
    :ref:`InterfaceRtemsInterruptVectorEnable`, otherwise it is false. When an
    interrupt vector may be enabled, this means that the enabled state may be
    changed from disabled to enabled.  The requested enabled state change
    should be checked by :ref:`InterfaceRtemsInterruptVectorIsEnabled`.  Some
    interrupt vectors may be optionally available and cannot be enabled on a
    particular :term:`target`.

can_disable
    This member is true, if the interrupt vector can be disabled by
    :ref:`InterfaceRtemsInterruptVectorDisable`, otherwise it is false. When an
    interrupt vector can be disabled, this means that the enabled state can be
    changed from enabled to disabled.  For an interrupt vector which can be
    disabled it follows that it may be disabled.

maybe_disable
    This member is true, if the interrupt vector may be disabled by
    :ref:`InterfaceRtemsInterruptVectorDisable`, otherwise it is false. When an
    interrupt vector may be disabled, this means that the enabled state may be
    changed from enabled to disabled.  The requested enabled state change
    should be checked by :ref:`InterfaceRtemsInterruptVectorIsEnabled`.  Some
    interrupt vectors may be always enabled and cannot be disabled on a
    particular :term:`target`.

can_raise
    This member is true, if the interrupt vector can be raised by
    :ref:`InterfaceRtemsInterruptRaise`, otherwise it is false.

can_raise_on
    This member is true, if the interrupt vector can be raised on a processor
    by :ref:`InterfaceRtemsInterruptRaiseOn`, otherwise it is false.

can_clear
    This member is true, if the interrupt vector can be cleared by
    :ref:`InterfaceRtemsInterruptClear`, otherwise it is false.

cleared_by_acknowledge
    This member is true, if the pending status of the interrupt associated with
    the interrupt vector is cleared by an interrupt acknowledge from the
    processor, otherwise it is false.

can_get_affinity
    This member is true, if the affinity set of the interrupt vector can be
    obtained by :ref:`InterfaceRtemsInterruptGetAffinity`, otherwise it is
    false.

can_set_affinity
    This member is true, if the affinity set of the interrupt vector can be set
    by :ref:`InterfaceRtemsInterruptSetAffinity`, otherwise it is false.

can_be_triggered_by_message
    This member is true, if the interrupt associated with the interrupt vector
    can be triggered by a message. Interrupts may be also triggered by signals,
    :ref:`InterfaceRtemsInterruptRaise`, or
    :ref:`InterfaceRtemsInterruptRaiseOn`.  Examples for message triggered
    interrupts are the PCIe MSI/MSI-X and the ARM GICv3 Locality-specific
    Peripheral Interrupts (LPI).

trigger_signal
    This member describes the trigger signal of the interrupt associated with
    the interrupt vector. Interrupts are normally triggered by signals which
    indicate an interrupt request from a peripheral.  Interrupts may be also
    triggered by messages, :ref:`InterfaceRtemsInterruptRaise`, or
    :ref:`InterfaceRtemsInterruptRaiseOn`.

.. rubric:: DESCRIPTION:

The :ref:`InterfaceRtemsInterruptGetAttributes` directive may be used to obtain
the attributes of an interrupt vector.

.. Generated from spec:/rtems/intr/if/entry

.. index:: rtems_interrupt_entry

.. _InterfaceRtemsInterruptEntry:

rtems_interrupt_entry
---------------------

This structure represents an interrupt entry.

.. rubric:: MEMBERS:

Members of the type shall not be accessed directly by the application.

.. rubric:: NOTES:

This structure shall be treated as an opaque data type from the :term:`API`
point of view.  Members shall not be accessed directly.  An entry may be
initialized by :ref:`InterfaceRTEMSINTERRUPTENTRYINITIALIZER` or
:ref:`InterfaceRtemsInterruptEntryInitialize`.  It may be installed for an
interrupt vector with :ref:`InterfaceRtemsInterruptEntryInstall` and removed
from an interrupt vector by :ref:`InterfaceRtemsInterruptEntryRemove`.

.. Generated from spec:/rtems/intr/if/handler

.. index:: rtems_interrupt_handler

.. _InterfaceRtemsInterruptHandler:

rtems_interrupt_handler
-----------------------

Interrupt handler routines shall have this type.

.. Generated from spec:/rtems/intr/if/level

.. index:: rtems_interrupt_level

.. _InterfaceRtemsInterruptLevel:

rtems_interrupt_level
---------------------

This integer type represents interrupt levels.

.. Generated from spec:/rtems/intr/if/lock

.. index:: rtems_interrupt_lock

.. _InterfaceRtemsInterruptLock:

rtems_interrupt_lock
--------------------

This structure represents an ISR lock.

.. Generated from spec:/rtems/intr/if/lock-context

.. index:: rtems_interrupt_lock_context

.. _InterfaceRtemsInterruptLockContext:

rtems_interrupt_lock_context
----------------------------

This structure provides an ISR lock context for acquire and release pairs.

.. Generated from spec:/rtems/intr/if/per-handler-routine

.. index:: rtems_interrupt_per_handler_routine

.. _InterfaceRtemsInterruptPerHandlerRoutine:

rtems_interrupt_per_handler_routine
-----------------------------------

Visitor routines invoked by :ref:`InterfaceRtemsInterruptHandlerIterate` shall
have this type.

.. Generated from spec:/rtems/intr/if/server-action

.. index:: rtems_interrupt_server_action

.. _InterfaceRtemsInterruptServerAction:

rtems_interrupt_server_action
-----------------------------

This structure represents an interrupt server action.

.. rubric:: MEMBERS:

Members of the type shall not be accessed directly by the application.

.. rubric:: NOTES:

This structure shall be treated as an opaque data type from the :term:`API`
point of view.  Members shall not be accessed directly.

.. Generated from spec:/rtems/intr/if/server-config

.. index:: rtems_interrupt_server_config

.. _InterfaceRtemsInterruptServerConfig:

rtems_interrupt_server_config
-----------------------------

This structure defines an interrupt server configuration.

.. rubric:: MEMBERS:

Members of the type shall not be accessed directly by the application.

.. rubric:: NOTES:

See also :ref:`InterfaceRtemsInterruptServerCreate`.

.. Generated from spec:/rtems/intr/if/server-control

.. index:: rtems_interrupt_server_control

.. _InterfaceRtemsInterruptServerControl:

rtems_interrupt_server_control
------------------------------

This structure represents an interrupt server.

.. rubric:: MEMBERS:

Members of the type shall not be accessed directly by the application.

.. rubric:: NOTES:

This structure shall be treated as an opaque data type from the :term:`API`
point of view.  Members shall not be accessed directly.  The structure is
initialized by :ref:`InterfaceRtemsInterruptServerCreate` and maintained by the
interrupt server support.

.. Generated from spec:/rtems/intr/if/server-entry

.. index:: rtems_interrupt_server_entry

.. _InterfaceRtemsInterruptServerEntry:

rtems_interrupt_server_entry
----------------------------

This structure represents an interrupt server entry.

.. rubric:: MEMBERS:

Members of the type shall not be accessed directly by the application.

.. rubric:: NOTES:

This structure shall be treated as an opaque data type from the :term:`API`
point of view.  Members shall not be accessed directly.  An entry is
initialized by :ref:`InterfaceRtemsInterruptServerEntryInitialize` and
destroyed by :ref:`InterfaceRtemsInterruptServerEntryDestroy`.  Interrupt
server actions can be prepended to the entry by
:ref:`InterfaceRtemsInterruptServerActionPrepend`.  The entry is submitted to
be serviced by :ref:`InterfaceRtemsInterruptServerEntrySubmit`.

.. Generated from spec:/rtems/intr/if/server-request

.. index:: rtems_interrupt_server_request

.. _InterfaceRtemsInterruptServerRequest:

rtems_interrupt_server_request
------------------------------

This structure represents an interrupt server request.

.. rubric:: MEMBERS:

Members of the type shall not be accessed directly by the application.

.. rubric:: NOTES:

This structure shall be treated as an opaque data type from the :term:`API`
point of view.  Members shall not be accessed directly.  A request is
initialized by :ref:`InterfaceRtemsInterruptServerRequestInitialize` and
destroyed by :ref:`InterfaceRtemsInterruptServerRequestDestroy`.  The interrupt
vector of the request can be set by
:ref:`InterfaceRtemsInterruptServerRequestSetVector`.  The request is submitted
to be serviced by :ref:`InterfaceRtemsInterruptServerRequestSubmit`.

.. Generated from spec:/rtems/intr/if/signal-variant

.. index:: rtems_interrupt_signal_variant

.. _InterfaceRtemsInterruptSignalVariant:

rtems_interrupt_signal_variant
------------------------------

This enumeration provides interrupt trigger signal variants.

.. rubric:: ENUMERATORS:

RTEMS_INTERRUPT_UNSPECIFIED_SIGNAL
    This interrupt signal variant indicates that the interrupt trigger signal
    is unspecified.

RTEMS_INTERRUPT_NO_SIGNAL
    This interrupt signal variant indicates that the interrupt cannot be
    triggered by a signal.

RTEMS_INTERRUPT_SIGNAL_LEVEL_LOW
    This interrupt signal variant indicates that the interrupt is triggered by
    a low level signal.

RTEMS_INTERRUPT_SIGNAL_LEVEL_HIGH
    This interrupt signal variant indicates that the interrupt is triggered by
    a high level signal.

RTEMS_INTERRUPT_SIGNAL_EDGE_FALLING
    This interrupt signal variant indicates that the interrupt is triggered by
    a falling edge signal.

RTEMS_INTERRUPT_SIGNAL_EDGE_RAISING
    This interrupt signal variant indicates that the interrupt is triggered by
    a raising edge signal.

.. Generated from spec:/rtems/type/if/interval

.. index:: rtems_interval

.. _InterfaceRtemsInterval:

rtems_interval
--------------

This type represents clock tick intervals.

.. Generated from spec:/rtems/intr/if/isr

.. index:: rtems_isr

.. _InterfaceRtemsIsr:

rtems_isr
---------

This type defines the return type of interrupt service routines.

.. rubric:: DESCRIPTION:

This type can be used to document interrupt service routines in the source
code.

.. Generated from spec:/rtems/intr/if/isr-entry

.. index:: rtems_isr_entry

.. _InterfaceRtemsIsrEntry:

rtems_isr_entry
---------------

Interrupt service routines installed by :ref:`InterfaceRtemsInterruptCatch`
shall have this type.

.. Generated from spec:/rtems/message/if/config

.. index:: rtems_message_queue_config

.. _InterfaceRtemsMessageQueueConfig:

rtems_message_queue_config
--------------------------

This structure defines the configuration of a message queue constructed by
:ref:`InterfaceRtemsMessageQueueConstruct`.

.. rubric:: MEMBERS:

name
    This member defines the name of the message queue.

maximum_pending_messages
    This member defines the maximum number of pending messages supported by the
    message queue.

maximum_message_size
    This member defines the maximum message size supported by the message
    queue.

storage_area
    This member shall point to the message buffer storage area begin. The
    message buffer storage area for the message queue shall be an array of the
    type defined by :ref:`InterfaceRTEMSMESSAGEQUEUEBUFFER` with a maximum
    message size equal to the maximum message size of this configuration.

storage_size
    This member defines size of the message buffer storage area in bytes.

storage_free
    This member defines the optional handler to free the message buffer storage
    area. It is called when the message queue is deleted.  It is called from
    task context under protection of the object allocator lock.  It is allowed
    to call :c:func:`free` in this handler.  If handler is `NULL
    <https://en.cppreference.com/w/c/types/NULL>`_, then no action will be
    performed.

attributes
    This member defines the attributes of the message queue.

.. Generated from spec:/rtems/mode/if/mode

.. index:: rtems_mode

.. _InterfaceRtemsMode:

rtems_mode
----------

This type represents a Classic API task mode set.

.. Generated from spec:/rtems/type/if/mp-packet-classes

.. index:: rtems_mp_packet_classes

.. _InterfaceRtemsMpPacketClasses:

rtems_mp_packet_classes
-----------------------

This enumeration defines the MPCI packet classes.

.. Generated from spec:/rtems/type/if/mpci-entry

.. index:: rtems_mpci_entry

.. _InterfaceRtemsMpciEntry:

rtems_mpci_entry
----------------

MPCI handler routines shall have this return type.

.. Generated from spec:/rtems/type/if/mpci-get-packet-entry

.. index:: rtems_mpci_get_packet_entry

.. _InterfaceRtemsMpciGetPacketEntry:

rtems_mpci_get_packet_entry
---------------------------

MPCI get packet routines shall have this type.

.. Generated from spec:/rtems/type/if/mpci-initialization-entry

.. index:: rtems_mpci_initialization_entry

.. _InterfaceRtemsMpciInitializationEntry:

rtems_mpci_initialization_entry
-------------------------------

MPCI initialization routines shall have this type.

.. Generated from spec:/rtems/type/if/mpci-receive-packet-entry

.. index:: rtems_mpci_receive_packet_entry

.. _InterfaceRtemsMpciReceivePacketEntry:

rtems_mpci_receive_packet_entry
-------------------------------

MPCI receive packet routines shall have this type.

.. Generated from spec:/rtems/type/if/mpci-return-packet-entry

.. index:: rtems_mpci_return_packet_entry

.. _InterfaceRtemsMpciReturnPacketEntry:

rtems_mpci_return_packet_entry
------------------------------

MPCI return packet routines shall have this type.

.. Generated from spec:/rtems/type/if/mpci-send-packet-entry

.. index:: rtems_mpci_send_packet_entry

.. _InterfaceRtemsMpciSendPacketEntry:

rtems_mpci_send_packet_entry
----------------------------

MPCI send packet routines shall have this type.

.. Generated from spec:/rtems/type/if/mpci-table

.. index:: rtems_mpci_table

.. _InterfaceRtemsMpciTable:

rtems_mpci_table
----------------

This type represents the user-provided MPCI control.

.. Generated from spec:/rtems/type/if/multiprocessing-table

.. index:: rtems_multiprocessing_table

.. _InterfaceRtemsMultiprocessingTable:

rtems_multiprocessing_table
---------------------------

This type represents the user-provided MPCI configuration.

.. Generated from spec:/rtems/type/if/name

.. index:: rtems_name

.. _InterfaceRtemsName:

rtems_name
----------

This type represents Classic API object names.

.. rubric:: DESCRIPTION:

It is an unsigned 32-bit integer which can be treated as a numeric value or
initialized using :ref:`InterfaceRtemsBuildName` to encode four ASCII
characters.  A value of zero may have a special meaning in some directives.

.. Generated from spec:/rtems/object/if/api-class-information

.. index:: rtems_object_api_class_information

.. _InterfaceRtemsObjectApiClassInformation:

rtems_object_api_class_information
----------------------------------

This structure is used to return information to the application about the
objects configured for a specific API/Class combination.

.. rubric:: MEMBERS:

minimum_id
    This member contains the minimum valid object identifier for this class.

maximum_id
    This member contains the maximum valid object identifier for this class.

maximum
    This member contains the maximum number of active objects configured for
    this class.

auto_extend
    This member is true, if this class is configured for automatic object
    extension, otherwise it is false.

unallocated
    This member contains the number of currently inactive objects of this
    class.

.. Generated from spec:/rtems/option/if/option

.. index:: rtems_option

.. _InterfaceRtemsOption:

rtems_option
------------

This type represents a Classic API directive option set.

.. Generated from spec:/rtems/type/if/packet-prefix

.. index:: rtems_packet_prefix

.. _InterfaceRtemsPacketPrefix:

rtems_packet_prefix
-------------------

This type represents the prefix found at the beginning of each MPCI packet sent
between nodes.

.. Generated from spec:/rtems/ratemon/if/period-states

.. index:: rtems_rate_monotonic_period_states

.. _InterfaceRtemsRateMonotonicPeriodStates:

rtems_rate_monotonic_period_states
----------------------------------

This enumeration defines the states in which a period may be.

.. rubric:: ENUMERATORS:

RATE_MONOTONIC_INACTIVE
    This status indicates the period is off the watchdog chain, and has never
    been initialized.

RATE_MONOTONIC_ACTIVE
    This status indicates the period is on the watchdog chain, and running.
    The owner may be executing or blocked waiting on another object.

RATE_MONOTONIC_EXPIRED
    This status indicates the period is off the watchdog chain, and has
    expired. The owner may still execute and has taken too much time to
    complete this iteration of the period.

.. Generated from spec:/rtems/ratemon/if/period-statistics

.. index:: rtems_rate_monotonic_period_statistics

.. _InterfaceRtemsRateMonotonicPeriodStatistics:

rtems_rate_monotonic_period_statistics
--------------------------------------

This structure provides the statistics of a period.

.. rubric:: MEMBERS:

count
    This member contains the number of periods executed.

missed_count
    This member contains the number of periods missed.

min_cpu_time
    This member contains the least amount of processor time used in a period.

max_cpu_time
    This member contains the highest amount of processor time used in a period.

total_cpu_time
    This member contains the total amount of processor time used in a period.

min_wall_time
    This member contains the least amount of :term:`CLOCK_MONOTONIC` time used
    in a period.

max_wall_time
    This member contains the highest amount of :term:`CLOCK_MONOTONIC` time
    used in a period.

total_wall_time
    This member contains the total amount of :term:`CLOCK_MONOTONIC` time used
    in a period.

.. Generated from spec:/rtems/ratemon/if/period-status

.. index:: rtems_rate_monotonic_period_status

.. _InterfaceRtemsRateMonotonicPeriodStatus:

rtems_rate_monotonic_period_status
----------------------------------

This structure provides the detailed status of a period.

.. rubric:: MEMBERS:

owner
    This member contains the identifier of the owner task of the period.

state
    This member contains the state of the period.

since_last_period
    This member contains the time elapsed since the last successful invocation
    :ref:`InterfaceRtemsRateMonotonicPeriod` using :term:`CLOCK_MONOTONIC`. If
    the period is expired or has not been initiated, then this value has no
    meaning.

executed_since_last_period
    This member contains the processor time consumed by the owner task since
    the last successful invocation :ref:`InterfaceRtemsRateMonotonicPeriod`. If
    the period is expired or has not been initiated, then this value has no
    meaning.

postponed_jobs_count
    This member contains the count of jobs which are not released yet.

.. Handwritten 

.. index:: rtems_regulator_attributes

.. _InterfaceRtemsRegulatorAttributes:

rtems_regulator_attributes
--------------------------

This structure defines the configuration of a regulator created by
:ref:`InterfaceRtemsRegulatorCreate`.

.. rubric:: MEMBERS:

deliverer
  This member contains a pointer to an application function invoked by
  the Delivery thread to output a message to the destination.

deliverer_context
  This member contains a pointer to an application defined context which
  is passed to delivery function.

maximum_message_size
  This member contains the maximum size message to process.

maximum_messages
  This member contains the maximum number of messages to be able to buffer.

output_thread_priority
  This member contains the priority of output thread.

output_thread_stack_size
  This member contains the Stack size of output thread.

output_thread_period
  This member contains the period (in ticks) of output thread.

maximum_to_dequeue_per_period
  This member contains the maximum number of messages the output thread
  should dequeue and deliver per period.

.. rubric:: NOTES:

This type is passed as an argument to :ref:`InterfaceRtemsRegulatorCreate`.

.. Handwritten 

.. index:: rtems_regulator_deliverer

.. _InterfaceRtemsRegulatorDeliverer:

rtems_regulator_deliverer
-------------------------

This type represents the function signature used to specify a delivery
function for the RTEMS Regulator.

.. rubric:: NOTES:

This type is used in the :ref:`InterfaceRtemsRegulatorAttributes`
structure which is passed as an argument to
:ref:`InterfaceRtemsRegulatorCreate`.

.. Handwritten 

.. index:: rtems_regulator_statistics

.. _InterfaceRtemsRegulatorStatistics:

rtems_regulator_statistics
--------------------------

This structure defines the statistics maintained by each Regulator instance.

.. rubric:: MEMBERS:

obtained
  This member contains the number of successfully obtained buffers.

released
  This member contains the number of successfully released buffers.

delivered
  This member contains the number of successfully delivered buffers.

period_statistics
  This member contains the Rate Monotonic Period
  statistics for the Delivery Thread. It is an instance of the
  :ref:`InterfaceRtemsRateMonotonicPeriodStatistics` structure.

.. rubric:: NOTES:

This type is passed as an argument to
:ref:`InterfaceRtemsRegulatorGetStatistics`.

.. Generated from spec:/rtems/signal/if/set

.. index:: rtems_signal_set

.. _InterfaceRtemsSignalSet:

rtems_signal_set
----------------

This integer type represents a bit field which can hold exactly 32 individual
signals.

.. Generated from spec:/rtems/config/if/stack-allocate-hook

.. index:: rtems_stack_allocate_hook

.. _InterfaceRtemsStackAllocateHook:

rtems_stack_allocate_hook
-------------------------

A thread stack allocator allocate handler shall have this type.

.. Generated from spec:/rtems/config/if/stack-allocate-init-hook

.. index:: rtems_stack_allocate_init_hook

.. _InterfaceRtemsStackAllocateInitHook:

rtems_stack_allocate_init_hook
------------------------------

A task stack allocator initialization handler shall have this type.

.. Generated from spec:/rtems/config/if/stack-free-hook

.. index:: rtems_stack_free_hook

.. _InterfaceRtemsStackFreeHook:

rtems_stack_free_hook
---------------------

A task stack allocator free handler shall have this type.

.. Generated from spec:/rtems/status/if/code

.. index:: rtems_status_code

.. _InterfaceRtemsStatusCode:

rtems_status_code
-----------------

This enumeration provides status codes for directives of the Classic API.

.. rubric:: ENUMERATORS:

RTEMS_SUCCESSFUL
    This status code indicates successful completion of a requested operation.

RTEMS_TASK_EXITTED
    This status code indicates that a thread exitted.

RTEMS_MP_NOT_CONFIGURED
    This status code indicates that multiprocessing was not configured.

RTEMS_INVALID_NAME
    This status code indicates that an object name was invalid.

RTEMS_INVALID_ID
    This status code indicates that an object identifier was invalid.

RTEMS_TOO_MANY
    This status code indicates you have attempted to create too many instances
    of a particular object class.

RTEMS_TIMEOUT
    This status code indicates that a blocking directive timed out.

RTEMS_OBJECT_WAS_DELETED
    This status code indicates the object was deleted while the thread was
    blocked waiting.

RTEMS_INVALID_SIZE
    This status code indicates that a specified size was invalid.

RTEMS_INVALID_ADDRESS
    This status code indicates that a specified address was invalid.

RTEMS_INVALID_NUMBER
    This status code indicates that a specified number was invalid.

RTEMS_NOT_DEFINED
    This status code indicates that the item has not been initialized.

RTEMS_RESOURCE_IN_USE
    This status code indicates that the object still had resources in use.

RTEMS_UNSATISFIED
    This status code indicates that the request was not satisfied.

RTEMS_INCORRECT_STATE
    This status code indicates that an object was in wrong state for the
    requested operation.

RTEMS_ALREADY_SUSPENDED
    This status code indicates that the thread was already suspended.

RTEMS_ILLEGAL_ON_SELF
    This status code indicates that the operation was illegal on the calling
    thread.

RTEMS_ILLEGAL_ON_REMOTE_OBJECT
    This status code indicates that the operation was illegal on a remote
    object.

RTEMS_CALLED_FROM_ISR
    This status code indicates that the operation should not be called from
    this execution environment.

RTEMS_INVALID_PRIORITY
    This status code indicates that an invalid thread priority was provided.

RTEMS_INVALID_CLOCK
    This status code indicates that a specified date or time was invalid.

RTEMS_INVALID_NODE
    This status code indicates that a specified node identifier was invalid.

RTEMS_NOT_CONFIGURED
    This status code indicates that the directive was not configured.

RTEMS_NOT_OWNER_OF_RESOURCE
    This status code indicates that the caller was not the owner of the
    resource.

RTEMS_NOT_IMPLEMENTED
    This status code indicates the directive or requested portion of the
    directive is not implemented. This is a hint that you have stumbled across
    an opportunity to submit code to the RTEMS Project.

RTEMS_INTERNAL_ERROR
    This status code indicates that an internal RTEMS inconsistency was
    detected.

RTEMS_NO_MEMORY
    This status code indicates that the directive attempted to allocate memory
    but was unable to do so.

RTEMS_IO_ERROR
    This status code indicates a device driver IO error.

RTEMS_INTERRUPTED
    This status code is used internally by the implementation to indicate a
    blocking device driver call has been interrupted and should be reflected to
    the caller as interrupted.

RTEMS_PROXY_BLOCKING
    This status code is used internally by the implementation when performing
    operations on behalf of remote tasks. This is referred to as proxying
    operations and this status indicates that the operation could not be
    completed immediately and the proxy is blocking.

.. Generated from spec:/rtems/task/if/task

.. index:: rtems_task

.. _InterfaceRtemsTask:

rtems_task
----------

This type defines the return type of task entry points.

.. rubric:: DESCRIPTION:

This type can be used to document task entry points in the source code.

.. Generated from spec:/rtems/task/if/argument

.. index:: rtems_task_argument

.. _InterfaceRtemsTaskArgument:

rtems_task_argument
-------------------

This integer type represents task argument values.

.. rubric:: NOTES:

The type is an architecture-specific unsigned integer type which is large
enough to represent pointer values and 32-bit unsigned integers.

.. Generated from spec:/rtems/userext/if/task-begin

.. index:: rtems_task_begin_extension

.. _InterfaceRtemsTaskBeginExtension:

rtems_task_begin_extension
--------------------------

Task begin extensions are invoked when a task begins execution.

.. rubric:: NOTES:

The task begin extensions are invoked in :term:`extension forward order`.

Task begin extensions are invoked with thread dispatching enabled.  This allows
the use of dynamic memory allocation, creation of POSIX keys, and use of C++
thread-local storage.  Blocking synchronization primitives are allowed also.

The task begin extensions are invoked before the global construction.

The task begin extensions may be called as a result of a task restart through
:ref:`InterfaceRtemsTaskRestart`.

.. Generated from spec:/rtems/task/if/config

.. index:: rtems_task_config

.. _InterfaceRtemsTaskConfig:

rtems_task_config
-----------------

This structure defines the configuration of a task constructed by
:ref:`InterfaceRtemsTaskConstruct`.

.. rubric:: MEMBERS:

name
    This member defines the name of the task.

initial_priority
    This member defines the initial priority of the task.

storage_area
    This member shall point to the task storage area begin. The task storage
    area will contain the task stack, the thread-local storage, and the
    floating-point context on architectures with a separate floating-point
    context.

    The task storage area begin address and size should be aligned by
    :c:macro:`RTEMS_TASK_STORAGE_ALIGNMENT`.  To avoid memory waste, use
    :c:func:`RTEMS_ALIGNED` and :c:macro:`RTEMS_TASK_STORAGE_ALIGNMENT` to
    enforce the recommended alignment of a statically allocated task storage
    area.

storage_size
    This member defines size of the task storage area in bytes. Use the
    :ref:`InterfaceRTEMSTASKSTORAGESIZE` macro to determine the recommended
    task storage area size.

maximum_thread_local_storage_size
    This member defines the maximum thread-local storage size supported by the
    task storage area. Use :c:func:`RTEMS_ALIGN_UP` and
    :c:macro:`RTEMS_TASK_STORAGE_ALIGNMENT` to adjust the size to meet the
    minimum alignment requirement of a thread-local storage area used to
    construct a task.

    If the value is less than the actual thread-local storage size, then the
    task construction by :ref:`InterfaceRtemsTaskConstruct` fails.

    If the is less than the task storage area size, then the task construction
    by :ref:`InterfaceRtemsTaskConstruct` fails.

    The actual thread-local storage size is determined when the application
    executable is linked.  The ``rtems-exeinfo`` command line tool included in
    the RTEMS Tools can be used to obtain the thread-local storage size and
    alignment of an application executable.

    The application may configure the maximum thread-local storage size for all
    threads explicitly through the
    :ref:`CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE` configuration option.

storage_free
    This member defines the optional handler to free the task storage area. It
    is called on exactly two mutually exclusive occasions.  Firstly, when the
    task construction aborts due to a failed task create extension, or
    secondly, when the task is deleted.  It is called from task context under
    protection of the object allocator lock.  It is allowed to call
    :c:func:`free` in this handler.  If handler is `NULL
    <https://en.cppreference.com/w/c/types/NULL>`_, then no action will be
    performed.

initial_modes
    This member defines the initial modes of the task.

attributes
    This member defines the attributes of the task.

.. Generated from spec:/rtems/userext/if/task-create

.. index:: rtems_task_create_extension

.. _InterfaceRtemsTaskCreateExtension:

rtems_task_create_extension
---------------------------

Task create extensions are invoked when a task is created.

.. rubric:: NOTES:

The task create extensions are invoked in :term:`extension forward order`.

The task create extensions are invoked after a new task has been completely
initialized, but before it is started.

While normal tasks are created, the executing thread is the owner of the object
allocator mutex.  The object allocator mutex allows nesting, so the normal
memory allocation routines can be used allocate memory for the created thread.

If the task create extension returns :c:macro:`false`, then the task create
operation stops immediately and the entire task create operation will fail.  In
this case, all task delete extensions are invoked, see
:ref:`InterfaceRtemsTaskDeleteExtension`.

.. Generated from spec:/rtems/userext/if/task-delete

.. index:: rtems_task_delete_extension

.. _InterfaceRtemsTaskDeleteExtension:

rtems_task_delete_extension
---------------------------

Task delete extensions are invoked when a task is deleted.

.. rubric:: NOTES:

The task delete extensions are invoked in :term:`extension reverse order`.

The task delete extensions are invoked by task create directives before an
attempt to allocate a :term:`TCB` is made.

If a task create extension failed, then a task delete extension may be invoked
without a previous invocation of the corresponding task create extension of the
extension set.

.. Generated from spec:/rtems/task/if/entry

.. index:: rtems_task_entry

.. _InterfaceRtemsTaskEntry:

rtems_task_entry
----------------

This type defines the :term:`task entry` point of an RTEMS task.

.. Generated from spec:/rtems/userext/if/task-exitted

.. index:: rtems_task_exitted_extension

.. _InterfaceRtemsTaskExittedExtension:

rtems_task_exitted_extension
----------------------------

Task exitted extensions are invoked when a task entry returns.

.. rubric:: NOTES:

The task exitted extensions are invoked in :term:`extension forward order`.

.. Generated from spec:/rtems/type/if/priority

.. index:: rtems_task_priority

.. _InterfaceRtemsTaskPriority:

rtems_task_priority
-------------------

This integer type represents task priorities of the Classic API.

.. Generated from spec:/rtems/userext/if/task-restart

.. index:: rtems_task_restart_extension

.. _InterfaceRtemsTaskRestartExtension:

rtems_task_restart_extension
----------------------------

Task restart extensions are invoked when a task restarts.

.. rubric:: NOTES:

The task restart extensions are invoked in :term:`extension forward order`.

The task restart extensions are invoked in the context of the restarted thread
right before the execution context is reloaded.  The thread stack reflects the
previous execution context.

Thread restart and delete requests issued by restart extensions lead to
recursion.

.. Generated from spec:/rtems/userext/if/task-start

.. index:: rtems_task_start_extension

.. _InterfaceRtemsTaskStartExtension:

rtems_task_start_extension
--------------------------

Task start extensions are invoked when a task was made ready for the first
time.

.. rubric:: NOTES:

The task start extensions are invoked in :term:`extension forward order`.

In SMP configurations, the thread may already run on another processor before
the task start extensions are actually invoked.  Task switch and task begin
extensions may run before or in parallel with the thread start extension in SMP
configurations, see :ref:`InterfaceRtemsTaskSwitchExtension` and
:ref:`InterfaceRtemsTaskBeginExtension`.

.. Generated from spec:/rtems/userext/if/task-switch

.. index:: rtems_task_switch_extension

.. _InterfaceRtemsTaskSwitchExtension:

rtems_task_switch_extension
---------------------------

Task switch extensions are invoked when a thread switch from an executing
thread to a heir thread takes place.

.. rubric:: NOTES:

The task switch extensions are invoked in :term:`extension forward order`.

The invocation conditions of the task switch extensions depend on whether RTEMS
was built with SMP support enabled or disabled.  A user must pay attention to
the differences to correctly implement a task switch extension.

Where the system was built with SMP support disabled, the task switch
extensions are invoked before the context switch from the currently executing
thread to the heir thread.  The executing is a pointer to the :term:`TCB` of
the currently executing thread. The heir is a pointer to the TCB of the heir
thread.  The context switch initiated through the multitasking start is not
covered by the task switch extensions.

Where the system was built with SMP support enabled, the task switch extensions
are invoked after the context switch to the heir thread.  The executing is a
pointer to the TCB of the previously executing thread. Despite the name, this
is not the currently executing thread. The heir is a pointer to the TCB of the
newly executing thread. This is the currently executing thread. The context
switches initiated through the multitasking start are covered by the task
switch extensions. The reason for the differences to uniprocessor
configurations is that the context switch may update the heir thread of the
processor.  The task switch extensions are invoked with maskable interrupts
disabled and with ownership of a processor-specific SMP lock.  Task switch
extensions may run in parallel on multiple processors.  It is recommended to
use thread-local or processor-specific data structures for task switch
extensions.  A global SMP lock should be avoided for performance reasons, see
:ref:`InterfaceRtemsInterruptLockInitialize`.

.. Generated from spec:/rtems/userext/if/task-terminate

.. index:: rtems_task_terminate_extension

.. _InterfaceRtemsTaskTerminateExtension:

rtems_task_terminate_extension
------------------------------

Task terminate extensions are invoked when a task terminates.

.. rubric:: NOTES:

The task terminate extensions are invoked in :term:`extension reverse order`.

The task terminate extensions are invoked in the context of the terminating
thread right before the thread dispatch to the heir thread should take place.
The thread stack reflects the previous execution context.  The POSIX cleanup
and key destructors execute in this context.

Thread restart and delete requests issued by terminate extensions lead to
recursion.

.. Generated from spec:/rtems/task/if/visitor

.. index:: rtems_task_visitor

.. _InterfaceRtemsTaskVisitor:

rtems_task_visitor
------------------

Visitor routines invoked by :ref:`InterfaceRtemsTaskIterate` shall have this
type.

.. Generated from spec:/rtems/task/if/tcb

.. index:: rtems_tcb

.. _InterfaceRtemsTcb:

rtems_tcb
---------

This structure represents the :term:`TCB`.

.. Generated from spec:/rtems/type/if/time-of-day

.. index:: rtems_time_of_day

.. _InterfaceRtemsTimeOfDay:

rtems_time_of_day
-----------------

This type represents Classic API calendar times.

.. rubric:: MEMBERS:

year
    This member contains the year A.D.

month
    This member contains the month of the year with values from 1 to 12.

day
    This member contains the day of the month with values from 1 to 31.

hour
    This member contains the hour of the day with values from 0 to 23.

minute
    This member contains the minute of the hour with values from 0 to 59.

second
    This member contains the second of the minute with values from 0 to 59.

ticks
    This member contains the clock tick of the second with values from 0 to
    :ref:`InterfaceRtemsClockGetTicksPerSecond` minus one.

.. Generated from spec:/rtems/timer/if/information

.. index:: rtems_timer_information

.. _InterfaceRtemsTimerInformation:

rtems_timer_information
-----------------------

The structure contains information about a timer.

.. rubric:: MEMBERS:

the_class
    The timer class member indicates how the timer was most recently fired.

initial
    This member indicates the initial requested interval.

start_time
    This member indicates the time the timer was initially scheduled. The time
    is in clock ticks since the clock driver initialization or the last clock
    tick counter overflow.

stop_time
    This member indicates the time the timer was scheduled to fire. The time is
    in clock ticks since the clock driver initialization or the last clock tick
    counter overflow.

.. Generated from spec:/rtems/timer/if/service-routine

.. index:: rtems_timer_service_routine

.. _InterfaceRtemsTimerServiceRoutine:

rtems_timer_service_routine
---------------------------

This type defines the return type of routines which can be fired by directives
of the Timer Manager.

.. rubric:: DESCRIPTION:

This type can be used to document timer service routines in the source code.

.. Generated from spec:/rtems/timer/if/service-routine-entry

.. index:: rtems_timer_service_routine_entry

.. _InterfaceRtemsTimerServiceRoutineEntry:

rtems_timer_service_routine_entry
---------------------------------

This type defines the prototype of routines which can be fired by directives of
the Timer Manager.

.. Generated from spec:/rtems/intr/if/vector-number

.. index:: rtems_vector_number

.. _InterfaceRtemsVectorNumber:

rtems_vector_number
-------------------

This integer type represents interrupt vector numbers.