diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-09 17:06:22 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-09 17:17:52 -0400 |
commit | d1296d7ca780daf7c54520831e6ebb5cbe0a3642 (patch) | |
tree | b2cfda818c7383875a1588ad2bb51408cf6e0903 /src/lib | |
parent | 22a4e1692886c118955da0326ed45bf4a8f7682e (diff) |
kern: iotap: Expose I/O taps to userland
Expose I/O taps to userland using a tap message interface. An
application may construct a tap message to send to the kernel requesting
data from a specific tap, if there is data, the buffers will be safely
populated, otherwise some error returned.
An example is accessing the PS/2 keyboard tap:
--
char name[] = "i8042.port.0";
char buf[2] = {0, 0};
struct iotap_msg msg = {
.opcode = IOTAP_OPC_READ,
.buf = buf,
.len = len
};
...
/* muxtap() may be used */
...
--
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib')
0 files changed, 0 insertions, 0 deletions