Channel circle › core 0 System (NetXecChannel) › main
main (core 0, sub -, flat id -)
41 functions
| Signature | Purpose | Source | Scope |
|---|---|---|---|
| static int MainGpuMsg(struct MainChannel *mc, uint32_t op, const void *in, uint32_t in_len) | Message helpers. Through the container when there is one, else straight to the GPUChannel. | MainChannel.c:38 | static |
| static int MainGpuSelfTest(struct MainChannel *mc, uint32_t mode) | (no comment) | MainChannel.c:46 | static |
| static void MainRuntimeRun(struct Channel *ch, long unused) | (no comment) | MainChannel.c:51 | static |
| static void MainSDLRun(struct MainChannel *mc) | (no comment) | MainChannel.c:57 | static |
| static int MainThread(void *arg) | (no comment) | MainChannel.c:79 | static |
| static struct MainChannel * OpenMainChannelBody(struct NetXecChannel *nx, int argc, char **argv) | (no comment) | MainChannel.c:176 | static |
| void MainChannelDrive(struct MainChannel *mc) | (no comment) | MainChannel.c:283 | public |
| static void CloseMainChannelBody(struct MainChannel *mc) | (no comment) | MainChannel.c:309 | static |
| int MainChannelIsProcess(void) | (no comment) | MainChannel.c:382 | public |
| uint64_t MainChannelNowMs(void) | (no comment) | MainChannel.c:383 | public |
| uint64_t MainChannelEpochMs(void) | (no comment) | MainChannel.c:384 | public |
| uint64_t MainChannelWaitTick(void) | Block until the next NetXec tick. Once the relay has stopped (NetXec gone / process exit), each call advances the NetXec clock by one NETXEC_TICK_MS step itself, so bounded waits (the JavaShm close drain) end. | MainChannel.c:388 | public |
| static void MainTickPublish(void) | relay: publish one NetXec tick, wake due subchannels (RunInfo ri_wait_time / ri_last_run) and tick waiters | MainChannel.c:409 | static |
| static int MainTickRelay(void *arg) | (no comment) | MainChannel.c:433 | static |
| int MainChannelCall(uint32_t op, const void *in, uint32_t in_len, void *out, uint32_t out_cap, uint32_t *out_len) | One request to NetXec through the IPC block. Waits on NetXec ticks for the answer (no timeout). -> NetXec's rc, or -1 only when NetXec is gone (no IPC / relay stopped / parent exited). | MainChannel.c:460 | public |
| int MainChannelRegisterSub(struct Channel *ch) | A subchannel of this process: the relay wakes it by its RunInfo; NetXec registers its flat id. 0 ok. | MainChannel.c:493 | public |
| void MainChannelUnregisterSub(struct Channel *ch) | (no comment) | MainChannel.c:513 | public |
| static int MainProcGPUMsg(uint32_t op, const void *in, uint32_t in_len) | (no comment) | MainChannel.c:522 | static |
| static void MainProcVLCOpen(void) | (no comment) | MainChannel.c:531 | static |
| static void MainProcLoop(struct MainChannel *mc) | The MainChannel process main loop: runs beside JavaChannel's "java" thread, one pass per NetXec tick. | MainChannel.c:542 | static |
| static void MainProcClose(struct MainChannel *mc) | (no comment) | MainChannel.c:596 | static |
| int MainChannelProcessMain(int argc, char **argv) | Child entry: netxec.exe --channel=main --ipc=<NetXec pid> [original args]. Exit code = g_proc_rc. | MainChannel.c:606 | public |
| void MainChannelServeDisplay(struct NetXecChannel *nx, int argc, char **argv) | NetXec side: ViewMain for the MainChannel process (NetXec owns SDL video). Same MainSDLRun as in-process. | MainChannel.c:723 | public |
| struct MainChannel * OpenMainChannel(struct NetXecChannel *nx, int argc, char **argv) | Standard runtime entry points (Join/Leave/Read/Write/Open/Close) -- thin wrappers, behaviour of Open/Close unchanged (bodies renamed *Body). See CHREC_RUNTIME in defines.h. | MainChannel.c:740 | public |
| void CloseMainChannel(struct MainChannel *mc) | (no comment) | MainChannel.c:747 | public |
| int RoleMain(int argc, char **argv, int *rc) | (no comment) | NetXecMainProc.c:32 | public |
| static uint32_t NxLe32(const uint8_t *p) | (no comment) | NetXecMainProc.c:58 | static |
| static void NxQuoteArg(char *restrict cmd, size_t cap, const char *restrict a) | (no comment) | NetXecMainProc.c:60 | static |
| int MainSpawn(struct NetXecChannel *nx, int argc, char **argv) | (no comment) | NetXecMainProc.c:67 | public |
| static int NxSubRegister(const uint8_t *in, uint32_t len) | (no comment) | NetXecMainProc.c:132 | static |
| static void NxSubUnregisterAll(void) | (no comment) | NetXecMainProc.c:164 | static |
| static int NxServe(uint32_t op, const uint8_t *restrict in, uint32_t len, uint8_t *restrict out, uint32_t cap, uint32_t *restrict out_len) | (no comment) | NetXecMainProc.c:180 | static |
| void MainPump(void) | (no comment) | NetXecMainProc.c:235 | public |
| int MainServe(struct NetXecChannel *nx, int argc, char **argv) | (no comment) | NetXecMainProc.c:262 | public |
| void MainSetExtServe(int (*fn)(uint32_t op, const uint8_t *in, uint32_t len, uint8_t *out, uint32_t cap, uint32_t *out_len)) | ==== 2026-10-17 gpudemo_java (additions) ==== MainSetExtServe: mailbox ops NxServe does not know go to fn (NULL = none; they answer -1 as before). | NetXecMainProc.c:309 | public |
| int MainServeFrames(struct NetXecChannel *nx, int (*frame)(void *ctx, uint64_t until_ms), void *ctx) | (no comment) | NetXecMainProc.c:314 | public |
| int MainSpawn(struct NetXecChannel *nx, int argc, char **argv) | (no comment) | NetXecMainProc.c:360 | public |
| int MainServe(struct NetXecChannel *nx, int argc, char **argv) | (no comment) | NetXecMainProc.c:361 | public |
| void MainPump(void) | (no comment) | NetXecMainProc.c:362 | public |
| void MainSetExtServe(int (*fn)(uint32_t op, const uint8_t *in, uint32_t len, uint8_t *out, uint32_t cap, uint32_t *out_len)) | 2026-10-17 gpudemo_java | NetXecMainProc.c:363 | public |
| int MainServeFrames(struct NetXecChannel *nx, int (*frame)(void *ctx, uint64_t until_ms), void *ctx) | (no comment) | NetXecMainProc.c:364 | public |