The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
sys_fb.c File Reference

the pollkey syscall (non-blocking keyboard peek for graphics demos). More...

#include "syscall_internal.h"
#include "syscall.h"
#include "drivers/keyboard/keyboard.h"

Functions

syscall_ret_t sys_pollkey (struct registers *regs)
 SYS_pollkey: non-blocking keyboard poll for interactive graphics programs.

Detailed Description

the pollkey syscall (non-blocking keyboard peek for graphics demos).

the interim framebuffer syscalls (SYS_fbinfo/SYS_fbmap) were retired in FB6: userspace now reaches the framebuffer through the /dev/fb0 fbdev (open + ioctl + mmap). pollkey remains until an input-event device (part of the Heimdall input work) replaces it.

Function Documentation

◆ sys_pollkey()

syscall_ret_t sys_pollkey ( struct registers * regs)

SYS_pollkey: non-blocking keyboard poll for interactive graphics programs.

returns the next pending character-key (a "kbhit"-style peek+consume), or 0 if no key is waiting. special keys (arrows etc.) are consumed and reported as 0 so they don't stall the caller. takes no arguments.