projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename time_t to mtime_t.
[bertos.git]
/
kern
/
proc_p.h
diff --git
a/kern/proc_p.h
b/kern/proc_p.h
index 5b0bc99a28235bcba7300de15ecec9eed3ef2c50..c4c93c74aa57f929c583a3e107018bd3b5702644 100755
(executable)
--- a/
kern/proc_p.h
+++ b/
kern/proc_p.h
@@
-15,6
+15,15
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.11 2004/11/16 22:37:14 bernie
+ *#* Replace IPTR with iptr_t.
+ *#*
+ *#* Revision 1.10 2004/10/19 11:47:07 bernie
+ *#* Add missing #endif.
+ *#*
+ *#* Revision 1.9 2004/10/19 08:55:31 bernie
+ *#* Define forbid_cnt.
+ *#*
*#* Revision 1.8 2004/10/03 20:39:28 bernie
*#* Import changes from sc/firmware.
*#*
*#* Revision 1.8 2004/10/03 20:39:28 bernie
*#* Import changes from sc/firmware.
*#*
@@
-66,13
+75,17
@@
typedef struct Process
{
Node link; /*!< Link Process into scheduler lists */
cpustack_t *stack; /*!< Per-process SP */
{
Node link; /*!< Link Process into scheduler lists */
cpustack_t *stack; /*!< Per-process SP */
-
IPTR
user_data; /*!< Custom data passed to the process */
+
iptr_t
user_data; /*!< Custom data passed to the process */
#if CONFIG_KERN_SIGNALS
sigset_t sig_wait; /*!< Signals the process is waiting for */
sigset_t sig_recv; /*!< Received signals */
#endif
#if CONFIG_KERN_SIGNALS
sigset_t sig_wait; /*!< Signals the process is waiting for */
sigset_t sig_recv; /*!< Received signals */
#endif
+#if CONFIG_KERN_PREEMPTIVE
+ int forbid_cnt; /*!< Nesting count for proc_forbid()/proc_permit(). */
+#endif
+
#if CONFIG_KERN_HEAP
uint16_t flags; /*!< Flags */
cpustack_t *stack_base; /*!< Base of process stack */
#if CONFIG_KERN_HEAP
uint16_t flags; /*!< Flags */
cpustack_t *stack_base; /*!< Base of process stack */
@@
-93,26
+106,24
@@
typedef struct Process
/*!
/*!
- * \name Flags for Process.flags
+ * \name Flags for Process.flags
.
* \{
*/
#define PF_FREESTACK BV(0) /*!< Free the stack when process dies */
/*\}*/
* \{
*/
#define PF_FREESTACK BV(0) /*!< Free the stack when process dies */
/*\}*/
-/*! Track running processes */
+/*! Track running processes
.
*/
extern REGISTER Process *CurrentProcess;
extern REGISTER Process *CurrentProcess;
-/*! Track ready processes */
+/*! Track ready processes
.
*/
extern REGISTER List ProcReadyList;
extern REGISTER List ProcReadyList;
-/*!
- * Enqueue a task in the ready list
- */
+/*! Enqueue a task in the ready list. */
#define SCHED_ENQUEUE(proc) ADDTAIL(&ProcReadyList, &(proc)->link)
#define SCHED_ENQUEUE(proc) ADDTAIL(&ProcReadyList, &(proc)->link)
-/*! Schedule to another process *without* adding the current to the ready list */
+/*! Schedule to another process *without* adding the current to the ready list
.
*/
void proc_schedule(void);
#if CONFIG_KERN_MONITOR
void proc_schedule(void);
#if CONFIG_KERN_MONITOR
@@
-122,8
+133,11
@@
void proc_schedule(void);
/*! Register a process into the monitor */
void monitor_add(Process *proc, const char *name, cpustack_t *stack, size_t stacksize);
/*! Register a process into the monitor */
void monitor_add(Process *proc, const char *name, cpustack_t *stack, size_t stacksize);
- /*!
De
register a process from the monitor */
+ /*!
Un
register a process from the monitor */
void monitor_remove(Process *proc);
void monitor_remove(Process *proc);
+
+ /*! Rename a process */
+ void monitor_rename(Process *proc, const char* name);
#endif /* CONFIG_KERN_MONITOR */
#endif /* KERN_PROC_P_H */
#endif /* CONFIG_KERN_MONITOR */
#endif /* KERN_PROC_P_H */