#include <io.h>
Functions | |
int | io_initialize () |
Initialize the I/O interrupts. | |
void | keyboard_handler (InterruptVector vector, Registers *registers) |
Initializes the keyboard interrupt. | |
int | process_scode (void) |
Processess the scan from the character queue. | |
void | getchar_wake_handler (Thread *thread, void *data) |
The handler function for getchar. | |
void | getchar_handler (InterruptVector vector, Registers *registers) |
Gets a new char from the queue. | |
void | readline_handler (InterruptVector vector, Registers *registers) |
Gets a newline from the queue. | |
void | readline_wake_handler (Thread *thread, void *data) |
The handler function for readline. | |
void | print_handler (InterruptVector vector, Registers *registers) |
Prints a line to the console. | |
void | termcolor_handler (InterruptVector vector, Registers *registers) |
Changes the color of the console. | |
void | setcursor_handler (InterruptVector vector, Registers *registers) |
Sets the cursor position on the console. | |
void | getcursor_handler (InterruptVector vector, Registers *registers) |
Gets the cursor position on the console. | |
void | insert (int ch) |
Inserts new character into the queue. | |
Variables | |
int | back |
int | front |
int | curr_size |
char | buffer [KEYBOARD_BUFFER_SIZE] |
char | rl_buffer [KEYBOARD_BUFFER_SIZE] |
int | rl_index |
int | rl_thread |
Resource | keyboardResource |
This file provides the implementation for i/o system calls.
Hassaan Moin Khan (hkhan)
|
Gets a new char from the queue. Its the getchar interrupt handler
|
|
The handler function for getchar. Handles the getchar syscall and thread waiting on a resourse that have been woken up
|
|
Gets the cursor position on the console. Its the get_cursor_pos interrupt handler
|
|
Inserts new character into the queue. Adds new characters to the back of the queue
|
|
Initialize the I/O interrupts. Installs the I/O interrups
|
|
Initializes the keyboard interrupt. Its the keyboard interrupt handler
|
|
Prints a line to the console. Its the print interrupt handler
|
|
Processess the scan from the character queue. Removes a character from the queue
|
|
Gets a newline from the queue. Its ths readline interrupt handler
|
|
The handler function for readline. Handles the readline syscall and thread waiting on a resourse that have been woken up
|
|
Sets the cursor position on the console. Its the get_cursor_pos interrupt handler
|
|
Changes the color of the console. Its the settermcolor interrupt handler
|