18#include <FreeNOS/System.h>
41 const char * textStates[] = {
Result
Enumeration of generic kernel API result codes.
Memory mapping for the kernel and user processes on the ARM architecture.
@ UserArgs
< Used for copying program arguments and file descriptors
Memory::Range range(Region region) const
Get memory range for the given region.
static const Size MaximumProcesses
Maximum number of processes.
static const ProcessID m_parent
Our parent process identifier.
ProcessID findProcess(const String program) const
Find a process by its program name.
ProcessID getProcessID() const
Get current process identifier.
static const ProcessID m_pid
Our own process identifier.
ProcessID getParentID() const
Get parent process identifier.
Result processInfo(const ProcessID pid, Info &info) const
Get process information by its ID.
virtual bool equals(const String &str) const
Alias for compareTo().
API::Result VMCopy(const ProcessID proc, const API::Operation how, const Address ours, const Address theirs, const Size sz)
Prototype for user applications.
API::Result ProcessCtl(const ProcessID proc, const ProcessOperation op, const Address addr=0, const Address output=0)
Prototype for user applications.
u32 ProcessID
Process Identification Number.
unsigned long Address
A memory address.
Address virt
Virtual address.
String command
Full command including program path.
ProcessInfo kernelState
Process state retrieved from the kernel.
String textState
Textual state of the process.
Process::State state
Defines the current state of the Process.
ProcessID id
Process Identity number.