mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-22 18:25:34 +08:00
c-user: Fix references
This commit is contained in:
parent
6ea95ab717
commit
bd6ccadea0
@ -278,8 +278,6 @@ generally considered a safer embedded systems programming practice to know the
|
|||||||
system limits rather than experience an out of memory error at an arbitrary and
|
system limits rather than experience an out of memory error at an arbitrary and
|
||||||
largely unpredictable time in the field.
|
largely unpredictable time in the field.
|
||||||
|
|
||||||
.. index:: rtems_resource_unlimited
|
|
||||||
|
|
||||||
.. _ConfigUnlimitedObjectsClass:
|
.. _ConfigUnlimitedObjectsClass:
|
||||||
|
|
||||||
Unlimited Objects by Class
|
Unlimited Objects by Class
|
||||||
@ -287,7 +285,7 @@ Unlimited Objects by Class
|
|||||||
|
|
||||||
When the number of objects is not known ahead of time, RTEMS provides an
|
When the number of objects is not known ahead of time, RTEMS provides an
|
||||||
auto-extending mode that can be enabled individually for each object type by
|
auto-extending mode that can be enabled individually for each object type by
|
||||||
using the macro ``rtems_resource_unlimited``. This takes a value as a
|
using the macro :ref:`InterfaceRtemsResourceUnlimited`. This takes a value as a
|
||||||
parameter, and is used to set the object maximum number field in an API
|
parameter, and is used to set the object maximum number field in an API
|
||||||
Configuration table. The value is an allocation unit size. When RTEMS is
|
Configuration table. The value is an allocation unit size. When RTEMS is
|
||||||
required to grow the object table it is grown by this size. The kernel will
|
required to grow the object table it is grown by this size. The kernel will
|
||||||
@ -295,18 +293,15 @@ return the object memory back to the RTEMS Workspace when an object is
|
|||||||
destroyed. The kernel will only return an allocated block of objects to the
|
destroyed. The kernel will only return an allocated block of objects to the
|
||||||
RTEMS Workspace if at least half the allocation size of free objects remain
|
RTEMS Workspace if at least half the allocation size of free objects remain
|
||||||
allocated. RTEMS always keeps one allocation block of objects allocated. Here
|
allocated. RTEMS always keeps one allocation block of objects allocated. Here
|
||||||
is an example of using ``rtems_resource_unlimited``:
|
is an example of using :c:func:`rtems_resource_unlimited`:
|
||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
#define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(5)
|
#define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited( 5 )
|
||||||
|
|
||||||
.. index:: rtems_resource_is_unlimited
|
|
||||||
.. index:: rtems_resource_maximum_per_allocation
|
|
||||||
|
|
||||||
Object maximum specifications can be evaluated with the
|
Object maximum specifications can be evaluated with the
|
||||||
``rtems_resource_is_unlimited`` and``rtems_resource_maximum_per_allocation``
|
:ref:`InterfaceRtemsResourceIsUnlimited` and
|
||||||
macros.
|
:ref:`InterfaceRtemsResourceMaximumPerAllocation` macros.
|
||||||
|
|
||||||
.. _ConfigUnlimitedObjectsDefault:
|
.. _ConfigUnlimitedObjectsDefault:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user