kvm/internal/native
Siyuan Miao 2d2c84df0c fix: event handler not being called 2025-11-19 22:55:18 +00:00
..
cgo fix git merge conflict 2025-11-19 18:11:13 +00:00
eez feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
proto feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
README.md feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
cgo_linux.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
cgo_notlinux.go feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
chan.go feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
ctrl.h feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
display.go feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
empty.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
grpc_client.go fix: event handler not being called 2025-11-19 22:55:18 +00:00
grpc_clientmethods.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
grpc_server.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
grpc_servermethods.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
interface.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
log.go feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
native.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
proxy.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
server.go feat: move native to a separate process, again (#964) 2025-11-19 15:15:28 +00:00
single.go feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
video.go chore: disable sleep mode when detecting video format (#887) 2025-10-17 16:03:38 +00:00

README.md

jetkvm-native

This component (internal/native/) acts as a bridge between Golang and native (C/C++) code. It manages spawning and communicating with a native process via sockets (gRPC and Unix stream).

For performance-critical operations such as video frame, a dedicated Unix socket should be used to avoid the overhead of gRPC and ensure low-latency communication.

Debugging

To enable debug mode, create a file called .native-debug-mode in the /userdata/jetkvm directory.

touch /userdata/jetkvm/.native-debug-mode

This will cause the native process to listen for SIGHUP signal and crash the process.

pgrep native | xargs kill -SIGHUP