blob: a7350b6235e9db1ca9c82f6df4fdd04c071cff4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/** @file kbd.h
*
* @brief keyboard functions.
*
* @author Hanjie Wu (hanjiew)
* @bug No functional bugs
*/
#ifndef _KBD_H_
#define _KBD_H_
#include <common.h>
#include <sched.h>
#include <sync.h>
/**
* @brief read a line to userspace
* @param len max length to read
* @param buf buffer
* @return size on success, -1 on failure
*/
int do_readline(int len, va_t buf);
/**
* @brief read a char
* @return char read
*/
int do_getchar();
#endif
|