Go to the source code of this file.
|
| static uint64_t | kbd_events_read (file_t *file, void *buffer, uint64_t count, uint64_t *offset) |
| |
| static wait_queue_t * | kbd_events_poll (file_t *file, poll_events_t *revents) |
| |
| static uint64_t | kbd_name_read (file_t *file, void *buffer, uint64_t count, uint64_t *offset) |
| |
| static void | kbd_dir_cleanup (inode_t *inode) |
| |
| kbd_t * | kbd_new (const char *name) |
| | Allocate and initialize a keyboard structure.
|
| |
| void | kbd_free (kbd_t *kbd) |
| | Free and deinitialize a keyboard structure.
|
| |
| static void | kbd_update_mod (kbd_t *kbd, kbd_event_type_t type, kbd_mods_t mod) |
| |
| void | kbd_push (kbd_t *kbd, kbd_event_type_t type, keycode_t code) |
| | Push a keyboard event to the keyboard event queue.
|
| |
◆ kbd_dir_cleanup()
| static void kbd_dir_cleanup |
( |
inode_t * |
inode | ) |
|
|
static |
◆ kbd_events_poll()
◆ kbd_events_read()
Definition at line 21 of file kbd.c.
References buffer, count, ERR, kbd_t::events, file, dentry_t::inode, kbd, KBD_MAX_EVENT, kbd_t::lock, LOCK_SCOPE, inode_t::private, ROUND_DOWN, WAIT_BLOCK_LOCK, kbd_t::waitQueue, and kbd_t::writeIndex.
◆ kbd_name_read()
◆ kbd_update_mod()
◆ dirInodeOps
Initial value:= {
}
static void kbd_dir_cleanup(inode_t *inode)
Definition at line 81 of file kbd.c.
Referenced by kbd_new().
◆ eventsOps
Initial value:= {
}
static wait_queue_t * kbd_events_poll(file_t *file, poll_events_t *revents)
static uint64_t kbd_events_read(file_t *file, void *buffer, uint64_t count, uint64_t *offset)
Definition at line 53 of file kbd.c.
Referenced by kbd_new().
◆ kbdDir
◆ nameOps
Initial value:= {
}
static uint64_t kbd_name_read(file_t *file, void *buffer, uint64_t count, uint64_t *offset)
Definition at line 70 of file kbd.c.
Referenced by kbd_new().
◆ newId