mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user