Squashed commit of the following:

sched/:  Convert legitimate uses of task_create() to nxtask_create().  Review handling of returned values from all uses of kthread_create() (as well as nxtask_create()).
    graphics/:  Review return values for all calls to kthread_start() because it no longer returns an errno.
    drivers/:  threads started by drivers should be kernel threads, not user tasks.  Review return values for all calls to kthread_start() because it no longer returns an errno.
    configs/:  threads started by board bringup logic should be kernel threads, not user tasksi (part 2 of 2).
    sched/task:  Add nxtask_create().  Kthread_create() and nxtask_create() are internal OS functions and should not modify the errno variable.  configs/:  threads started by board bringup logic should be kernel threads, not user tasks.
This commit is contained in:
Gregory Nutt
2018-01-31 16:11:54 -06:00
parent 1550ef2f54
commit 50ca32e254
42 changed files with 293 additions and 164 deletions
+4 -5
View File
@@ -231,25 +231,24 @@ int usbmonitor_start(void)
(FAR char * const *)NULL);
if (ret < 0)
{
int errcode = get_errno();
uerr("ERROR: Failed to start the USB monitor: %d\n",
errcode);
UNUSED(errcode);
ret);
}
else
{
g_usbmonitor.pid = ret;
uinfo("Started: %d\n", g_usbmonitor.pid);
ret = OK;
}
sched_unlock();
return 0;
return ret;
}
sched_unlock();
uinfo("%s: %d\n",
g_usbmonitor.stop ? "Stopping" : "Running", g_usbmonitor.pid);
return 0;
return OK;
}
/****************************************************************************