]> rtime.felk.cvut.cz Git - frescor/fosa.git/blobdiff - include/fosa_app_def_sched.h
Small further corrections in FOSA done by Michael
[frescor/fosa.git] / include / fosa_app_def_sched.h
index 6ed45ffe8ca4fa53ac2f4e0e014832bbb128ef4f..1b56cfc030688cb4b99f7cf4859b173ea53b8930 100644 (file)
  * arg. A pointer to this new created area will be passed to the
  * primitive operation init() in its arg parameter.
  *
+ * This function must be called before any other function in this
+ * header file.
+ *
+ * In addition it must be called at a priority level no greater than
+ * the priority at which the scheduler operations execute.  This
+ * priority is defined as the maximum SCHED_FIFO priority in the
+ * system minus the configuration parameter FOSA_ADS_SCHEDULER_PRIO_DIFF.
+ *
  * Returns 0 if successful; otherwise it returns an error code:
  *     EINVAL: The value of scheduler_ops was invalid
  *     EAGAIN: The system lacks enough resources to create the scheduler
@@ -457,8 +465,6 @@ int fosa_adsactions_add_suspend(
  *
  *  Returns 0 if successful; otherwise it returns an error code:
  *     ENOMEM: There is insufficient memory to add this action
- *     EPOLICY: The thread specified by thread has its appscheduled
- *              attribute set to false, 
  *     EINVAL: The value specified by sched_actions is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
@@ -524,6 +530,8 @@ int fosa_adsactions_add_thread_notification(
  * succeed, it has to be called from a primitive operation of a
  * scheduler.
  *
+ * The size of the array is specified by argument size.
+ *
  * Returns 0 if successful; otherwise it returns an error code:
  *    EPOLICY: The function has not been called from a scheduler 
  *              primitive operation
@@ -533,7 +541,7 @@ int fosa_adsactions_add_thread_notification(
  * notify it to the system console and then terminate the FRSH
  * implementation and dependant applications
  **/
-int fosa_ads_set_handled_signal_set(frsh_signal_t set[]);
+int fosa_ads_set_handled_signal_set(frsh_signal_t set[], int size);
 
 
 /**