ArvernOS
Loading...
Searching...
No Matches
io.h File Reference
#include <stdbool.h>
Include dependency graph for io.h:

Functions

unsigned char arch_getchar (bool blocking)
 
void arch_putchar (char c)
 

Detailed Description

Architecture-specific code for input/output. Currently, "input" and "output" are not well-defined, although the functions listed below should be used exclusively by the kernel. Input should be "the thing that sends characters typed by a human to the kernel" and output should be "the thing that sends characters from the kernel to a human".

Function Documentation

◆ arch_getchar()

unsigned char arch_getchar ( bool blocking)

Reads a character from an input.

Parameters
blockingwhether the call to this function should wait for a character or not
Returns
a character

◆ arch_putchar()

void arch_putchar ( char c)

Prints a character to an output.

Parameters
cthe character to print