PatchworkOS  dbbdc99
A non-POSIX operating system.
Loading...
Searching...
No Matches
kbd.h File Reference
#include <kernel/fs/devfs.h>
#include <kernel/sched/wait.h>
#include <kernel/sync/lock.h>
#include <kernel/utils/fifo.h>
#include <stdint.h>
#include <sys/kbd.h>
#include <sys/proc.h>
Include dependency graph for kbd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  kbd_client_t
 Keyboard event client structure. More...
 
struct  kbd_t
 Keyboard structure. More...
 

Macros

#define KBD_CLIENT_BUFFER_SIZE   512
 Size of the keyboard client buffer.
 

Typedefs

typedef struct kbd kbd_t
 

Functions

kbd_tkbd_new (const char *name)
 Allocate and initialize a new keyboard.
 
void kbd_free (kbd_t *kbd)
 Frees a keyboard.
 
void kbd_press (kbd_t *kbd, keycode_t code)
 Push a keyboard press event to the keyboard event queue.
 
void kbd_release (kbd_t *kbd, keycode_t code)
 Push a keyboard release event to the keyboard event queue.
 

Typedef Documentation

◆ kbd_t

typedef struct kbd kbd_t

Definition at line 12 of file kbd.h.