Karg  v0.2.0
The kernel of CargOS
ldisc.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <config.h>
4 #include <dev.h>
5 
6 typedef struct {
12 
15 void ldisc_recv_byte(u32 num, u8 byte);
16 isize ldisc_write(u32 num, const u8 *buf, usize size);
#define TTY_SINK_CAPACITY
Definition: config.h:13
void ldisc_recv_byte(u32 num, u8 byte)
Definition: ldisc.c:49
isize ldisc_write(u32 num, const u8 *buf, usize size)
Definition: ldisc.c:86
i32 ldisc_register_sink(u32 num, dev_t dev)
Definition: ldisc.c:38
i32 ldisc_register_src(u32 num, dev_t dev)
Definition: ldisc.c:29
Definition: dev.h:6
Definition: ldisc.h:6
dev_t src
Definition: ldisc.h:7
u32 nr_sinks
Definition: ldisc.h:9
u32 cursor_pos
Definition: ldisc.h:10
__INTPTR_TYPE__ isize
Definition: types.h:29
__INT32_TYPE__ i32
Definition: types.h:15
__UINTPTR_TYPE__ usize
Definition: types.h:28
__UINT8_TYPE__ u8
Definition: types.h:3
__UINT32_TYPE__ u32
Definition: types.h:5