summaryrefslogtreecommitdiffstats
path: root/c_user/symmetric_multiprocessing_services.rst
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-02-18 15:41:28 +1100
committerAmar Takhar <verm@darkbeer.org>2016-05-02 20:51:26 -0400
commit25d55d49c3f52a12a52def776104e0c9c721e680 (patch)
tree659abcd9eefe270c58fe9f7027fe192f08d95b20 /c_user/symmetric_multiprocessing_services.rst
parentFix double quotes. (diff)
downloadrtems-docs-25d55d49c3f52a12a52def776104e0c9c721e680.tar.bz2
Change code to code-block.
Diffstat (limited to 'c_user/symmetric_multiprocessing_services.rst')
-rw-r--r--c_user/symmetric_multiprocessing_services.rst21
1 files changed, 10 insertions, 11 deletions
diff --git a/c_user/symmetric_multiprocessing_services.rst b/c_user/symmetric_multiprocessing_services.rst
index c45c3e1..c9e9b9f 100644
--- a/c_user/symmetric_multiprocessing_services.rst
+++ b/c_user/symmetric_multiprocessing_services.rst
@@ -502,7 +502,7 @@ initialization task function is called (just like a global C++ constructor).
To set application specific values, a higher priority constructor function must
be used to set up the environment variables.
-.. code:: c
+.. code-block:: c
#include <stdlib.h>
void __attribute__((constructor(1000))) config_libgomp( void )
@@ -628,7 +628,7 @@ processor for I/O tasks, another for computation, etc.. The following
illustrates the code sequence necessary to assign a task an affinity for
processor with index ``processor_index``.
-.. code:: c
+.. code-block:: c
#include <rtems.h>
#include <assert.h>
@@ -661,7 +661,7 @@ GET_PROCESSOR_COUNT - Get processor count
**CALLING SEQUENCE:**
-.. code:: c
+.. code-block:: c
uint32_t rtems_get_processor_count(void);
@@ -690,7 +690,7 @@ GET_CURRENT_PROCESSOR - Get current processor index
**CALLING SEQUENCE:**
-.. code:: c
+.. code-block:: c
uint32_t rtems_get_current_processor(void);
@@ -722,7 +722,7 @@ SCHEDULER_IDENT - Get ID of a scheduler
**CALLING SEQUENCE:**
-.. code:: c
+.. code-block:: c
rtems_status_code rtems_scheduler_ident(
rtems_name name,
@@ -760,7 +760,7 @@ SCHEDULER_GET_PROCESSOR_SET - Get processor set of a scheduler
**CALLING SEQUENCE:**
-.. code:: c
+.. code-block:: c
rtems_status_code rtems_scheduler_get_processor_set(
rtems_id scheduler_id,
@@ -800,7 +800,7 @@ TASK_GET_SCHEDULER - Get scheduler of a task
**CALLING SEQUENCE:**
-.. code:: c
+.. code-block:: c
rtems_status_code rtems_task_get_scheduler(
rtems_id task_id,
@@ -835,7 +835,7 @@ TASK_SET_SCHEDULER - Set scheduler of a task
**CALLING SEQUENCE:**
-.. code:: c
+.. code-block:: c
rtems_status_code rtems_task_set_scheduler(
rtems_id task_id,
@@ -910,7 +910,7 @@ TASK_GET_AFFINITY - Get task processor affinity
**CALLING SEQUENCE:**
-.. code:: c
+.. code-block:: c
rtems_status_code rtems_task_get_affinity(
rtems_id id,
@@ -950,7 +950,7 @@ TASK_SET_AFFINITY - Set task processor affinity
**CALLING SEQUENCE:**
-.. code:: c
+.. code-block:: c
rtems_status_code rtems_task_set_affinity(
rtems_id id,
@@ -989,4 +989,3 @@ circumstances on these processors since the scheduler ignores them. Some
locking protocols may temporarily use processors that are not included in the
processor affinity set of the task. It is also not an error if the processor
affinity set contains processors that are not part of the system.
-