From 7071ca9d21d783827f93fcd25631aa2da8df8fe4 Mon Sep 17 00:00:00 2001
From: patacongo Last Updated: August 12, 2010 Last Updated: February 4, 2010
@@ -306,7 +306,7 @@
On-Demand Paging
-
- The page fill worker thread will maintain a static variable called _TCB *g_pftcb
.
+ The page fill worker thread will maintain a static variable called struct tcb_s *g_pftcb
.
If no fill is in progress, g_pftcb
will be NULL.
Otherwise, it will point to the TCB of the task which is receiving the fill that is in progess.
void up_block_task(FAR _TCB *tcb, tstate_t task_state);
+ void up_block_task(FAR struct tcb_s *tcb, tstate_t task_state);
void up_unblock_task(FAR _TCB *tcb);
+ void up_unblock_task(FAR struct tcb_s *tcb);
int up_checkmapping(FAR _TCB *tcb);
+ int up_checkmapping(FAR struct tcb_s *tcb);
up_checkmapping()
returns an indication if the page fill still needs to performed or not.
@@ -651,7 +651,7 @@
This function will prevent the same page from be filled multiple times.
int up_allocpage(FAR _TCB *tcb, FAR void *vpage);
+ int up_allocpage(FAR struct tcb_s *tcb, FAR void *vpage);
int up_fillpage(FAR _TCB *tcb, FAR const void *vpage, void (*pg_callback)(FAR _TCB *tcb, int result));
+ int up_fillpage(FAR struct tcb_s *tcb, FAR const void *vpage, void (*pg_callback)(FAR struct tcb_s *tcb, int result));
up_fillpage()
.
This will start asynchronous page fill.
diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html
index f2f7ada02..9eb114fd2 100644
--- a/nuttx/Documentation/NuttxPortingGuide.html
+++ b/nuttx/Documentation/NuttxPortingGuide.html
@@ -12,7 +12,7 @@
Last Updated: January 23, 2013
+Last Updated: February 4, 2013
@@ -1590,7 +1590,7 @@ The system can be re-made subsequently by just typingmake
.
up_initial_state()
Prototype: void up_initial_state(FAR _TCB *tcb);
Prototype: void up_initial_state(FAR struct tcb_s *tcb);
Description.
A new thread is being started and a new TCB has been created.
@@ -1613,7 +1613,7 @@ The system can be re-made subsequently by just typing make
.
up_create_stack()
Prototype: STATUS up_create_stack(FAR _TCB *tcb, size_t stack_size);
Prototype: STATUS up_create_stack(FAR struct tcb_s *tcb, size_t stack_size);
Description.
Allocate a stack for a new thread and setup
@@ -1648,7 +1648,7 @@ The system can be re-made subsequently by just typing make
.
up_use_stack()
Prototype:
- STATUS up_use_stack(FAR _TCB *tcb, FAR void *stack, size_t stack_size);
+ STATUS up_use_stack(FAR struct tcb_s *tcb, FAR void *stack, size_t stack_size);
Description.
@@ -1682,7 +1682,7 @@ The system can be re-made subsequently by just typing make
.
up_release_stack()
Prototype: void up_release_stack(FAR _TCB *dtcb);
Prototype: void up_release_stack(FAR struct tcb_s *dtcb);
Description.
A task has been stopped. Free all stack
@@ -1694,7 +1694,7 @@ The system can be re-made subsequently by just typing make
.
up_unblock_task()
Prototype: void up_unblock_task(FAR _TCB *tcb);
Prototype: void up_unblock_task(FAR struct tcb_s *tcb);
Description.
A task is currently in an inactive task list
@@ -1717,7 +1717,7 @@ The system can be re-made subsequently by just typing make
.
up_block_task()
Prototype: void up_block_task(FAR _TCB *tcb, tstate_t task_state);
Prototype: void up_block_task(FAR struct tcb_s *tcb, tstate_t task_state);
Description.
The currently executing task at the head of
@@ -1760,7 +1760,7 @@ The system can be re-made subsequently by just typing make
.
up_reprioritize_rtr()
Prototype: void up_reprioritize_rtr(FAR _TCB *tcb, uint8_t priority);
Prototype: void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority);
Description.
Called when the priority of a running or
@@ -1821,7 +1821,7 @@ The system can be re-made subsequently by just typing make
.
up_schedule_sigaction()
Prototype:
- void up_schedule_sigaction(FAR _TCB *tcb, sig_deliver_t sigdeliver);
+ void up_schedule_sigaction(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver);
Description. @@ -2297,7 +2297,7 @@ else
up_addrenv_assign()
Prototype:
int up_addrenv_assign(task_addrenv_t addrenv, FAR _TCB *tcb);
+ int up_addrenv_assign(task_addrenv_t addrenv, FAR struct tcb_s *tcb);
Description:
up_addrenv_share()
Prototype:
int up_addrenv_share(FAR const _TCB *ptcb, FAR _TCB *ctcb);
+ int up_addrenv_share(FAR const struct tcb_s *ptcb, FAR struct tcb_s *ctcb);
Description:
up_addrenv_release()
Prototype:
int up_addrenv_release(FAR _TCB *tcb);
+ int up_addrenv_release(FAR struct tcb_s *tcb);
Description:
User's Manual
by
Gregory Nutt
-
Last Updated: February 2, 2013
+Last Updated: February 4, 2013
@@ -342,7 +342,7 @@ VxWorks provides the following similar interface: Function Prototype:#include <sched.h> - int task_init(_TCB *tcb, char *name, int priority, uint32_t *stack, uint32_t stack_size, + int task_init(struct tcb_s *tcb, char *name, int priority, uint32_t *stack, uint32_t stack_size, maint_t entry, char * const argv[]);@@ -414,7 +414,7 @@ VxWorks provides the following similar interface: Function Prototype:
#include <sched.h> - int task_activate(_TCB *tcb); + int task_activate(struct tcb_s *tcb);
@@ -9188,7 +9188,7 @@ From the standpoint of the application, these structures (and structure pointers) should be treated as simple handles to reference OS resources. These hidden structures include: