- Timestamp:
-
07/11/17 08:21:56 (7 years ago)
- Author:
-
Sebastian Huber
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
initial
|
v1
|
|
1 | 1 | {{{ |
2 | 2 | /** |
3 | | * @brief Gets the set of processors owned by the specified scheduler instance. |
| 3 | * @brief Identifies a scheduler by a processor set. |
4 | 4 | * |
5 | | * @param[in] scheduler_id Identifier of the scheduler instance. |
| 5 | * The scheduler is selected according to the highest numbered online processor |
| 6 | * in the specified processor set. |
| 7 | * |
6 | 8 | * @param[in] cpusetsize Size of the specified processor set buffer in |
7 | | * bytes. This value must be positive. |
8 | | * @param[out] cpuset The processor set owned by the scheduler. A set bit in |
9 | | * the processor set means that this processor is owned by the scheduler and a |
10 | | * cleared bit means the opposite. |
| 9 | * bytes. This value must be positive. |
| 10 | * @param[out] cpuset The processor set to identify the scheduler. |
| 11 | * @param[out] id The scheduler identifier associated with the processor set. |
11 | 12 | * |
12 | 13 | * @retval RTEMS_SUCCESSFUL Successful operation. |
13 | | * @retval RTEMS_INVALID_ADDRESS The @a cpuset parameter is @c NULL. |
14 | | * @retval RTEMS_INVALID_ID Invalid scheduler instance identifier. |
15 | | * @retval RTEMS_INVALID_NUMBER The processor set buffer is too small for the |
16 | | * set of processors owned by the scheduler. |
| 14 | * @retval RTEMS_INVALID_ADDRESS The @a id parameter is @c NULL. |
| 15 | * @retval RTEMS_INVALID_SIZE Invalid processor set size. |
| 16 | * @retval RTEMS_INVALID_NAME The processor set contains no online processor. |
| 17 | * @retval RTEMS_INCORRECT_STATE The processor set is valid, however, the |
| 18 | * highest numbered online processor in the specified processor set is not |
| 19 | * owned by a scheduler. |
17 | 20 | */ |
18 | | rtems_status_code rtems_scheduler_get_processor_set( |
19 | | rtems_id scheduler_id, |
| 21 | rtems_status_code rtems_scheduler_ident_by_processor_set( |
20 | 22 | size_t cpusetsize, |
21 | | cpu_set_t *cpuset |
| 23 | cpu_set_t *cpuset, |
| 24 | rtems_id *id |
22 | 25 | ); |
23 | 26 | }}} |