proc.h File Reference
#include "cfg/cfg_proc.h"#include "cfg/cfg_signal.h"#include "cfg/cfg_monitor.h"#include "sem.h"#include <struct/list.h>#include <cfg/compiler.h>#include <cfg/debug.h>#include <cpu/types.h>#include <cpu/frame.h>Go to the source code of this file.
Defines | |
| #define | proc_new(entry, data, size, stack) proc_new_with_name(NULL,(entry),(data),(size),(stack)) |
| Create a new named process and schedules it for execution. | |
| #define | proc_allowed() proc_preemptAllowed() |
| Deprecated, use the proc_preemptAllowed() macro. | |
| #define | PROC_ATOMIC(CODE) |
| Execute a block of CODE atomically with respect to task scheduling. | |
| #define | KERN_MINSTACKSIZE |
| Default stack size for each thread, in bytes. | |
| #define | PROC_DEFINE_STACK(name, size) |
| Utility macro to allocate a stack of size size. | |
Functions | |
| void | proc_init (void) |
| Initialize the process subsystem (kernel). | |
| void | proc_exit (void) |
| Terminate the execution of the current process. | |
| void | proc_yield (void) |
| Voluntarily release the CPU. | |
| bool | proc_needPreempt (void) |
| Check if we need to schedule another task. | |
| void | proc_preempt (void) |
| Preempt the current task. | |
| void | proc_rename (struct Process *proc, const char *name) |
| Rename a process. | |
| const char * | proc_name (struct Process *proc) |
| Return the name of the specified process. | |
| const char * | proc_currentName (void) |
| Return the name of the currently running process. | |
| iptr_t | proc_currentUserData (void) |
| Return a pointer to the user data of the current process. | |
| struct Process * | proc_current (void) |
| Return the context structure of the currently running process. | |
| void | proc_setPri (struct Process *proc, int pri) |
| Change the scheduling priority of a process. | |
| void | proc_forbid (void) |
| Disable preemptive task switching. | |
| void | proc_permit (void) |
| Re-enable preemptive task switching. | |
| bool | proc_preemptAllowed (void) |
Detailed Description
Definition in file proc.h.
