docs - refresh man pages
This commit is contained in:
1 parent
7eda8b1a8d
commit
a463834e0a
21 files changed
+972
-524
No files matched your search
@@ -111,14 +111,17 @@
|
||||
<pre><code><strong>NAME</strong>
|
||||
fb_info, fb_map - direct framebuffer access
|
||||
|
||||
|
||||
<strong>SYNOPSIS</strong>
|
||||
<strong> void montauk::fb_info(montauk::abi::FbInfo* info);</strong>
|
||||
<strong> void* montauk::fb_map();</strong>
|
||||
<strong>void montauk::fb_info(montauk::abi::FbInfo* info);</strong>
|
||||
<strong>void* montauk::fb_map();</strong>
|
||||
|
||||
|
||||
<strong>DESCRIPTION</strong>
|
||||
These syscalls allow userspace programs to access the linear
|
||||
framebuffer directly for graphical output.
|
||||
|
||||
|
||||
<strong>fb_info</strong>
|
||||
Fills in an FbInfo structure with the framebuffer geometry:
|
||||
|
||||
@@ -129,15 +132,18 @@
|
||||
The pitch is the number of bytes per scanline (may be larger
|
||||
than width * 4 due to alignment). bpp is always 32.
|
||||
|
||||
|
||||
<strong>fb_map</strong>
|
||||
Maps the physical framebuffer into the process address space at
|
||||
a fixed virtual address (0x50000000) and returns that address.
|
||||
Maps the physical framebuffer into a dedicated region of the process
|
||||
address space and returns its address. Programs must use the returned
|
||||
pointer rather than assuming a particular virtual address.
|
||||
|
||||
uint32_t* pixels = (uint32_t*)montauk::fb_map();
|
||||
|
||||
Each pixel is a 32-bit value in 0xAARRGGBB format (blue in the
|
||||
low byte). Writing to this memory directly updates the screen.
|
||||
|
||||
|
||||
<strong>PIXEL FORMAT</strong>
|
||||
Bits 31-24: Alpha (unused, typically 0xFF)
|
||||
Bits 23-16: Red
|
||||
@@ -146,6 +152,7 @@
|
||||
|
||||
Example: red = 0x00FF0000, green = 0x0000FF00, blue = 0x000000FF
|
||||
|
||||
|
||||
<strong>EXAMPLE</strong>
|
||||
Fill the screen with blue:
|
||||
|
||||
@@ -160,6 +167,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
<strong>NOTES</strong>
|
||||
After mapping, the cursor overlay is not composited. Programs
|
||||
that use the framebuffer take full control of screen output.
|
||||
@@ -167,9 +175,9 @@
|
||||
Only one mapping per process is supported. Calling fb_map()
|
||||
multiple times returns the same address.
|
||||
|
||||
<strong>SEE ALSO</strong>
|
||||
syscalls(2), malloc(3)</code></pre>
|
||||
|
||||
<strong>SEE ALSO</strong>
|
||||
<a href="syscalls.html">syscalls(2)</a>, <a href="malloc.html">malloc(3)</a></code></pre>
|
||||
<hr>
|
||||
|
||||
<div class="center">
|
||||
|
||||
Reference in new issue
Block a user