Expand description
First version is derived and adapted for HermitCore from Philipp Oppermann’s excellent series of blog posts (http://blog.phil-opp.com/) and Eric Kidd’s toy OS (https://github.com/emk/toyos-rs).
Modules
Macros
- Prints and returns the value of a given expression for quick and dirty debugging.
- Prints to the standard output.
- Prints to the standard output, with a newline.
Structs
Functions
- Set the current task state to
blocked
- Set the current task state to
blocked
- Determine the priority of the current thread
- Returns the number of processors currently online.
- Returns the processor frequency in MHz.
- The function computes a sequence of pseudo-random integers in the range of 0 to RAND_MAX
- Fill
len
bytes inbuf
with cryptographically secure random data. - Create a cryptographicly secure 32bit random number with the support of the underlying hardware. If the required hardware isn’t available, the function returns
-1
. - Create a cryptographicly secure 64bit random number with the support of the underlying hardware. If the required hardware isn’t available, the function returns -1.
- Set priority of the current thread
- Set priority of the thread with the identifier
id
- The function sets its argument as the seed for a new sequence of pseudo-random numbers to be returned by rand()
- Wake up the task with the identifier
id