Karg  v0.2.0
The kernel of CargOS
tty.c File Reference
#include <drivers/tty.h>
#include <errno.h>
#include <mm/kalloc.h>

Functions

i32 tty_init_ctrl_blk (tty_ctrl_blk_t *ctrl_blk)
 

Variables

tty_ctrl_blk_ttty_ctrl_blks [DRIVER_DEV_CAPACITY]
 
const driver_t TTY_DRIVER
 

Function Documentation

◆ tty_init_ctrl_blk()

i32 tty_init_ctrl_blk ( tty_ctrl_blk_t ctrl_blk)

Variable Documentation

◆ tty_ctrl_blks

◆ TTY_DRIVER

const driver_t TTY_DRIVER
Initial value:
= {
.read = read,
.write = write,
}