Go to the documentation of this file.
18 #include <FreeNOS/User.h>
49 printf(
"failed to retrieve core count from CoreServer: %d\n",
62 printf(
"Memory Total: %u KB\r\n"
63 "Memory Available: %u KB\r\n"
64 "Processor Cores: %u\r\n"
65 "Timer: %l ticks (%u hertz)\r\n"
CoreClient provides a simple interface to a CoreServer.
SysInfo(int argc, char **argv)
Constructor.
uint tv_usec
Microseconds.
POSIX-compatible application.
unsigned long Address
A memory address.
void setDescription(const String &desc)
Set program description.
API::Result ProcessCtl(const ProcessID proc, const ProcessOperation op, const Address addr=0, const Address output=0)
Prototype for user applications.
Timer information structure.
virtual Result exec()
Execute the application.
Core::Result getCoreCount(Size &numCores) const
Get number of processor cores in the system.
int gettimeofday(struct timeval *tv, struct timezone *tz)
Get current time of day.
int printf(const char *format,...)
Output a formatted string to standard output.
virtual ~SysInfo()
Destructor.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
Result
Result code for Actions.
ArgumentParser & parser()
Get program arguments parser.