Karg  v0.2.0
The kernel of CargOS
ldisc.h File Reference
#include <config.h>
#include <dev.h>

Go to the source code of this file.

Classes

struct  ldisc_ctrl_blk_t
 

Functions

i32 ldisc_register_src (u32 num, dev_t dev)
 
i32 ldisc_register_sink (u32 num, dev_t dev)
 
void ldisc_recv_byte (u32 num, u8 byte)
 
isize ldisc_write (u32 num, const u8 *buf, usize size)
 

Function Documentation

◆ ldisc_recv_byte()

void ldisc_recv_byte ( u32  num,
u8  byte 
)

◆ ldisc_register_sink()

i32 ldisc_register_sink ( u32  num,
dev_t  dev 
)

◆ ldisc_register_src()

i32 ldisc_register_src ( u32  num,
dev_t  dev 
)

◆ ldisc_write()

isize ldisc_write ( u32  num,
const u8 buf,
usize  size 
)