Make task_init() and task_activate() internal OS functions.

-Move task_init() and task_activate() prototypes from include/sched.h to include/nuttx/sched.h.  These are internal OS functions and should not be exposed to the user.
-Remove references to task_init() and task_activate() from the User Manual.
-Rename task_init() to nxtask_init() since since it is an OS internal function
-Rename task_activate() to nxtask_activate since it is an OS internal function
This commit is contained in:
Gregory Nutt
2020-05-25 15:30:40 -06:00
committed by Abdelatif Guettouche
parent dd9d9878ad
commit 82debdc213
29 changed files with 138 additions and 256 deletions
+5 -5
View File
@@ -166,11 +166,11 @@ int exec_module(FAR const struct binary_s *binp)
/* Initialize the task */
ret = task_init((FAR struct tcb_s *)tcb, binp->filename, binp->priority,
stack, binp->stacksize, binp->entrypt, binp->argv);
ret = nxtask_init((FAR struct tcb_s *)tcb, binp->filename, binp->priority,
stack, binp->stacksize, binp->entrypt, binp->argv);
if (ret < 0)
{
berr("task_init() failed: %d\n", ret);
berr("nxtask_init() failed: %d\n", ret);
kumm_free(stack);
goto errout_with_addrenv;
}
@@ -254,10 +254,10 @@ int exec_module(FAR const struct binary_s *binp)
/* Then activate the task at the provided priority */
ret = task_activate((FAR struct tcb_s *)tcb);
ret = nxtask_activate((FAR struct tcb_s *)tcb);
if (ret < 0)
{
berr("task_activate() failed: %d\n", ret);
berr("nxtask_activate() failed: %d\n", ret);
goto errout_with_tcbinit;
}