forked from nuttx/nuttx-update
arch: Rename _exit to up_exit to follow the naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I2779a2a3ccb5426fe78714fdcc629b8dfbb7aaf6
This commit is contained in:
parent
85b859fb8d
commit
b4bd9427f7
18 changed files with 52 additions and 34 deletions
|
@ -78,7 +78,7 @@
|
|||
<a href="#upblocktask">4.2.9 <code>up_block_task()</code></a><br>
|
||||
<a href="#upreleasepending">4.2.10 <code>up_release_pending()</code></a><br>
|
||||
<a href="#upreprioritizertr">4.2.11 <code>up_reprioritize_rtr()</code></a><br>
|
||||
<a href="#_exit">4.2.12 <code>_exit()</code></a><br>
|
||||
<a href="#upexit">4.2.12 <code>up_exit()</code></a><br>
|
||||
<a href="#upassert">4.2.13 <code>up_assert()</code></a><br>
|
||||
<a href="#upschedulesigaction">4.2.14 <code>up_schedule_sigaction()</code></a><br>
|
||||
<a href="#upallocateheap">4.2.15 <code>up_allocate_heap()</code></a><br>
|
||||
|
@ -2131,8 +2131,8 @@ The specific environmental definitions are unique for each board but should incl
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<h3><a name="_exit">4.2.12 <code>_exit()</code></a></h3>
|
||||
<p><b>Function Prototype</b>: <code>void _exit(int status) noreturn_function;</code></p>
|
||||
<h3><a name="up_exit">4.2.12 <code>up_exit()</code></a></h3>
|
||||
<p><b>Function Prototype</b>: <code>void up_exit(int status) noreturn_function;</code></p>
|
||||
|
||||
<p><b>Description</b>.
|
||||
This function causes the currently executing task to cease
|
||||
|
|
|
@ -114,7 +114,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -124,7 +124,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -139,7 +139,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -123,7 +123,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -141,7 +141,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -134,7 +134,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -132,7 +132,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -139,7 +139,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -123,7 +123,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -141,7 +141,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -63,7 +63,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
FAR struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease to exist.
|
||||
|
@ -123,7 +123,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease to exist.
|
||||
|
@ -127,7 +127,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb;
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ static void _xtensa_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -140,7 +140,7 @@ static void _xtensa_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ static void _z16_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -123,7 +123,7 @@ static void _z16_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
FAR struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -125,7 +125,7 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
void up_exit(int status)
|
||||
{
|
||||
FAR struct tcb_s *tcb = this_task();
|
||||
|
||||
|
|
|
@ -450,7 +450,7 @@ void up_release_pending(void);
|
|||
void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
* Name: up_exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
|
@ -464,6 +464,8 @@ void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority);
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void up_exit() noreturn_function;
|
||||
|
||||
/* Prototype is in unistd.h */
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
@ -39,6 +39,22 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: _exit
|
||||
*
|
||||
* Description:
|
||||
* This function causes the currently executing task to cease
|
||||
* to exist. This is a special case of task_delete() where the task to
|
||||
* be deleted is the currently executing task. It is more complex because
|
||||
* a context switch must be perform to the next ready to run task.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void _exit(int status)
|
||||
{
|
||||
up_exit(status);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: exit
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue