Skip to content

Instantly share code, notes, and snippets.

@X547
X547 / KDL1.log
Created June 14, 2026 16:54
Haiku Kernel deadlock triggered by running Wine v11.11
Keyboard Requested Halt.
Welcome to Kernel Debugging Land...
revision: hrev59430+95
Thread 229 "USB Keyboard 3 watcher" running on CPU 7
kdebug> teams
team id parent name
0xffffffff830b0a00 1 0x0000000000000000 kernel_team
0xffffffff830b0000 65 0xffffffff830b0a00 launch_daemon
0xffffffff830b1e00 69 0xffffffff830b0000 debug_server
0xffffffff830b4600 70 0xffffffff830b0000 mount_server
@X547
X547 / WindowMessages.yaml
Created April 6, 2026 23:53
app_server generated messages
- B_WINDOW_RESIZED:
$target: 2
when: !int64 4372303558
width: !int32 321
height: !int32 239
- B_WINDOW_MOVED:
$target: 2
when: !int64 4370125839
where: !BPoint {x: 129, y: 127}
<protocol>
<types>
<token name="handler_token" type="int32"/>
<token name="window_token" type="int32"/>
<token name="bitmap_token" type="int32"/>
<token name="picture_token" type="int32"/>
<token name="cursor_token" type="int32"/>
<struct name="rgb_color" header="GraphicsDefs.h">
<field name="red" type="uint8"/>
@X547
X547 / ContainerOf.h
Created November 12, 2025 23:38
C++ traits with stable ABI
#pragma once
#include <stddef.h>
#include <stdint.h>
template <class T, class M>
static inline constexpr ptrdiff_t OffsetOf(const M T::*member)
{
return reinterpret_cast<ptrdiff_t>(&(reinterpret_cast<T*>(0)->*member));
@X547
X547 / RopeList.cpp
Created October 16, 2025 22:23
RopeList
#include "RopeList.h"
#include <assert.h>
#include <stdio.h>
#include <algorithm>
RopeList::RopeList()
:
fRoot(NULL)
version: 2
unknown: 0
ops:
- ENTER_STATE_CHANGE:
- SET_PEN_LOCATION:
x: 0.0
y: 0.0
@X547
X547 / Canvas.h
Last active April 2, 2026 22:47
app_server_neo Canvas interface
#pragma once
#include <string_view>
#include <memory>
#include <vector>
#include <optional>
#include <variant>
#include <Point.h>
#include <Rect.h>
NV01_ROOT(0)
NV01_ROOT_CLIENT(0xc1d00354)
NV01_DEVICE_0(0xbeef0003)
NV20_SUBDEVICE_0(0xbeef0004)
VOLTA_USERMODE_A(0xbeefc360)
RM_USER_SHARED_DATA(0xbeef00de)
GF100_ZBC_CLEAR(0xbeef9960)
NV01_EVENT(0x15)
NV01_EVENT(0x17)
NV01_EVENT(0x18)
<protocol>
<types>
<token name="handler_token" type="int32"/>
<token name="window_token" type="int32"/>
<token name="bitmap_token" type="int32"/>
<token name="picture_token" type="int32"/>
<token name="cursor_token" type="int32"/>
<struct name="rgb_color" header="GraphicsDefs.h">
<field name="red" type="uint8"/>
#include <stdio.h>
#include <sys/mman.h>
#include <unistd.h>
#include "Wayland.h"
#include "XdgShell.h"
#include "linux/input-event-codes.h"
extern "C" {