MultiverseSocial.com

Channel circle › core 10 Process0 › java

java (core 10, sub 14, flat id 174)

348 functions
SignaturePurposeSourceScope
static inline uint16_t NioLoadLE16(const void *p)(no comment)JavaChannel.c:71static
static inline void NioStoreLE16(void *p, uint16_t v)(no comment)JavaChannel.c:72static
static inline uint32_t NioLoadLE32(const void *p)(no comment)JavaChannel.c:73static
static inline void NioStoreLE32(void *p, uint32_t v)(no comment)JavaChannel.c:74static
static inline uint64_t NioLoadLE64(const void *p)(no comment)JavaChannel.c:75static
static inline void NioStoreLE64(void *p, uint64_t v)(no comment)JavaChannel.c:76static
static inline uint32_t NioAtomicLoadLE32(const void *p, int mo)(no comment)JavaChannel.c:77static
static inline void NioAtomicStoreLE32(void *p, uint32_t v, int mo)(no comment)JavaChannel.c:78static
static inline uint64_t NioAtomicLoadLE64(const void *p, int mo)(no comment)JavaChannel.c:79static
static inline void NioAtomicStoreLE64(void *p, uint64_t v, int mo)(no comment)JavaChannel.c:80static
static inline int NioAtomicCasLE64(void *p, uint64_t *expected, uint64_t desired, int mo_ok, int mo_fail)(no comment)JavaChannel.c:81static
static inline void ChannelDataStoreLE(uint8_t *restrict dst, const struct ChannelData *restrict cd)(no comment)JavaChannel.c:92static
static inline void ChannelDataLoadLE(struct ChannelData *restrict cd, const uint8_t *restrict src)(no comment)JavaChannel.c:107static
static uint64_t JshmNowMs(void)(no comment)JavaChannel.c:128static
static uint32_t JshmPID(void)(no comment)JavaChannel.c:133static
static int JshmPIDAlive(uint32_t pid)(no comment)JavaChannel.c:142static
static uint64_t JshmState(uint32_t pid, uint64_t ms)(no comment)JavaChannel.c:158static
static int JshmIsStale(uint64_t st, uint64_t now_ms)(no comment)JavaChannel.c:163static
int JavaShmFilePath(const char *name, char *out, unsigned cap)(no comment)JavaChannel.c:178public
static int JshmSlotOk(const struct JavaShm *ch, int slot)(no comment)JavaChannel.c:191static
struct JavaShm * OpenJavaShm(int as_owner)(no comment)JavaChannel.c:196public
void CloseJavaShm(struct JavaShm *ch)(no comment)JavaChannel.c:273public
int JoinJavaShm(struct JavaShm *ch)(no comment)JavaChannel.c:290public
void LeaveJavaShm(struct JavaShm *ch, int slot)(no comment)JavaChannel.c:322public
int JavaShmBeat(struct JavaShm *ch, int slot)(no comment)JavaChannel.c:334public
int JavaShmReclaim(struct JavaShm *ch)(no comment)JavaChannel.c:349public
int64_t WriteJavaShm(struct JavaShm *ch, int slot, int dir, const void *buf, uint32_t len)(no comment)JavaChannel.c:365public
int64_t ReadJavaShm(struct JavaShm *ch, int slot, int dir, void *buf, uint32_t cap)(no comment)JavaChannel.c:387public
uint64_t JavaShmSlotState(struct JavaShm *ch, int slot)(no comment)JavaChannel.c:409public
uint32_t JavaShmSeq(struct JavaShm *ch, int slot, int dir)(no comment)JavaChannel.c:414public
int ReadJavaShmRecord(struct JavaShm *ch, int slot, struct ChannelData *out)(no comment)JavaChannel.c:420public
static const char * JcSig(uint16_t op)(no comment)JavaChannel.c:458static
const char * JavaShmCmdName(uint16_t op)(no comment)JavaChannel.c:467public
int JavaShmCmdSet(struct JavaShmCmd *cmd, uint16_t op, const uint32_t *args, uint16_t nargs, const char *str)(no comment)JavaChannel.c:472public
int32_t JavaShmCmdEncode(uint8_t *restrict dst, uint32_t cap, const struct JavaShmCmd *restrict cmd)(no comment)JavaChannel.c:489public
int32_t JavaShmCmdDecode(const uint8_t *restrict src, uint32_t len, struct JavaShmCmd *restrict cmd)(no comment)JavaChannel.c:515public
int32_t JavaShmCmdDispatch(const uint8_t *buf, uint32_t len, uint16_t dir, const struct JavaShmCmdHandlers *h)(no comment)JavaChannel.c:545public
int64_t JavaShmCmdSend(struct JavaShm *ch, int slot, int dir, const struct JavaShmCmd *cmd)(no comment)JavaChannel.c:563public
int EventNexusFind(uint32_t channel_event)(no comment)JavaChannel.c:597public
uint32_t EventNexusFromAwt(int32_t awt_event)(no comment)JavaChannel.c:603public
int EventNexusIsInput(uint32_t channel_event)(no comment)JavaChannel.c:610public
int JavaShmBufName(uint32_t id, char *out, uint32_t cap)(no comment)JavaChannel.c:630public
uint32_t JavaShmBufRound(uint32_t bytes)(no comment)JavaChannel.c:642public
int32_t JavaShmBufCreate(uint32_t id, uint32_t bytes, uint32_t flags, const char *name)(no comment)JavaChannel.c:648public
int32_t JavaShmBufDestroy(uint32_t id)(no comment)JavaChannel.c:708public
int32_t JavaShmBufUnmapBegin(uint32_t id)(no comment)JavaChannel.c:726public
void * JavaShmBufHost(uint32_t id, uint32_t *bytes)(no comment)JavaChannel.c:733public
uint32_t JavaShmBufFlags(uint32_t id)(no comment)JavaChannel.c:739public
int JavaShmBufUnmapPending(uint32_t id)(no comment)JavaChannel.c:740public
int32_t JavaShmBufHandoff(uint32_t id, uint32_t win, int32_t w, int32_t h)(no comment)JavaChannel.c:742public
int32_t JavaShmBufReturn(uint32_t win, uint32_t id)(no comment)JavaChannel.c:752public
uint32_t JavaShmBufReturnFirst(uint32_t win)(no comment)JavaChannel.c:759public
uint32_t JavaShmBufDrawWin(uint32_t id)(no comment)JavaChannel.c:769public
int JavaShmBufWritable(uint32_t id)(no comment)JavaChannel.c:771public
void JavaShmBufDestroyAll(void)(no comment)JavaChannel.c:776public
static int JgOneStage(uint32_t s)(no comment)JavaChannel.c:786static
int JavaShmGpuSpirvLocalSize(const void *code, size_t size, uint32_t *x, uint32_t *y, uint32_t *z)SPIR-V: header 5 words (magic 0x07230203), then instructions word0 = wordcount<<16 | opcode. OpExecutionMode = 16: <entry> <mode> <literals>; mode 17 LocalSize x y z, mode 38 LocalSizeId.JavaChannel.c:793public
static int32_t JgLe(const uint8_t *restrict p)request (LE u32 words): [0] sub, then per sub; reply: [0] i32 JCMD rc [+ words]. NetXecMainProc answers 1 = served.JavaChannel.c:841static
static void JgPut(uint8_t *restrict p, uint32_t v)(no comment)JavaChannel.c:842static
static int JgsDevice(void)(no comment)JavaChannel.c:853static
static struct jg_kslot * JgsKernel(uint32_t id)(no comment)JavaChannel.c:855static
static void JgsSlotFree(struct jg_kslot *restrict s)(no comment)JavaChannel.c:862static
static void JgsPairFree(struct jg_pair *restrict p)(no comment)JavaChannel.c:869static
static void JgsVarFree(uint32_t buffer)(no comment)JavaChannel.c:875static
static void JgsRelease(void)(no comment)JavaChannel.c:882static
static int32_t JgsLoad(uint32_t shader, uint32_t stage, const char *restrict path)(no comment)JavaChannel.c:890static
static int32_t JgsGob(uint32_t gob, uint32_t vid, uint32_t fid)gob's pair: vid (vertex) + fid (fragment) Java shader ids; 0 / 0 = drop itJavaChannel.c:916static
static int JgsMap(struct jg_map *restrict m, const char *restrict dir, uint32_t id, uint32_t bytes)(no comment)JavaChannel.c:937static
static void JgsUnmap(struct jg_map *restrict m)(no comment)JavaChannel.c:959static
static int32_t JgsDispatch(uint32_t shader, uint32_t gx, uint32_t gy, uint32_t gz, uint32_t nbuf, const uint32_t *restrict ids, const uint32_t *restrict bytes, uint32_t nuser, const uint32_t *restrict user, const char *restrict dir)(no comment)JavaChannel.c:967static
static void JgsForceCPU(int on)tests: on = GPUCOMPUTE_FORCE_CPU=1 in NetXec (GPUComputeAvailable() reads it on every call); off = restoreJavaChannel.c:1003static
static int32_t JgsGobdraw(uint32_t gob, uint32_t id, uint32_t bytes, uint32_t w, uint32_t h, uint32_t nverts, uint32_t tint, const char *restrict dir)addition 2026-10-17: gob pair draw (JSHM_GPU_SUB_GOBDRAW). The gob's GPUShader pair (GOB_SET_SHADER vertex + fragment) draws the buffer's vertices over its source image on GPUComputeHandle() (JWindowGpuDrawPair, the JWindow / ContainerJavaChannel.c:1031static
static void JssFree(void)(no comment)JavaChannel.c:1068static
int32_t JavaShmGpuShowcase(uint32_t *restrict argb, uint32_t w, uint32_t h, uint32_t turn, char *restrict note, unsigned cap)(no comment)JavaChannel.c:1078public
int JavaShmGpuServe(const uint8_t *restrict in, uint32_t len, uint8_t *restrict out, uint32_t cap, uint32_t *restrict out_len)NetXec: one NXMAIN_OP_JAVA_GPU request. -> 1 (served; out[0..3] = JCMD rc, then any reply words), -1 bad request.JavaChannel.c:1145public
struct GPUKernel * JavaShmGpuKernelOf(uint32_t shader)---- NetXec side, for a NetXec renderer (2026-10-17, gpudemo_java; addition only) ---- The GPU objects Java's verbs made (SHADER_LOAD compute -> GPUKernel, GOB_SET_SHADER vertex + fragment -> the gob'sJavaChannel.c:1218public
struct GPUShader * JavaShmGpuGobPairOf(uint32_t gob)(no comment)JavaChannel.c:1224public
struct GPUVar * JavaShmGpuVarOf(uint32_t buffer)(no comment)JavaChannel.c:1231public
static int32_t JgCallW(const uint8_t *restrict req, uint32_t len, uint32_t *restrict words, uint32_t nwords)(no comment)JavaChannel.c:1246static
static int32_t JgCall(const uint8_t *restrict req, uint32_t len)(no comment)JavaChannel.c:1260static
static int32_t JgCall4(uint32_t sub, uint32_t a, uint32_t b, uint32_t c)(no comment)JavaChannel.c:1262static
static int32_t JgCall2(uint32_t sub, uint32_t a)(no comment)JavaChannel.c:1268static
static struct jg_shader * JgShFind(uint32_t id)(no comment)JavaChannel.c:1270static
int JavaShmGpuAvailable(void)(no comment)JavaChannel.c:1277public
void JavaShmGpuForceCpu(int on)tests: on = GPUCOMPUTE_FORCE_CPU=1 in NetXec (the real switch GPUComputeAvailable() honours); off = restore itJavaChannel.c:1284public
int32_t JavaShmGpuStats(uint32_t *restrict counts4)NetXec's live JavaChannel GPU objects: kernels, GPUVars, stage shaders, gob pairs. -1 none reachableJavaChannel.c:1291public
void JavaShmGpuBufferGone(uint32_t buffer)(no comment)JavaChannel.c:1301public
void JavaShmGpuReleaseAll(void)(no comment)JavaChannel.c:1308public
int JavaShmGpuDataPath(const char *restrict file, char *restrict out, unsigned cap)<exe dir>/data/<file> (ucrt layout: javachannel/data holds the .spv)JavaChannel.c:1323public
int32_t JavaShmGpuShaderLoad(uint32_t shader, uint32_t stage, const char *path)(no comment)JavaChannel.c:1341public
int32_t JavaShmGpuDispatchN(uint32_t shader, const uint32_t *restrict bufs, uint32_t nbuf, const uint32_t *restrict user, uint32_t nuser, uint32_t gx, uint32_t gy, uint32_t gz)C side: one kernel over up to JSHM_GPU_DISPATCH_BUFS BUFFER_MAP buffers (var i = bufs[i]) with user words (params GPUK_P_USER + j), gx x gy x gz workgroups (GPURunVars3D). GPU_DISPATCH is the 1-buffer, no-user case.JavaChannel.c:1369public
int32_t JavaShmGpuDispatch(uint32_t shader, uint32_t buffer, uint32_t gx, uint32_t gy, uint32_t gz)(no comment)JavaChannel.c:1403public
int32_t JavaShmGpuSetGobShader(uint32_t gob, uint32_t shader, uint32_t stage_mask)GOB_SET_SHADER: per gob one compute, one vertex and one fragment shader. stage_mask 0 = the shader's own stage; shader 0 unbinds the masked stages (mask 0 = all). A gob with a vertex and a fragment shader gets its pair inJavaChannel.c:1411public
int JavaShmGpuGobGet(uint32_t gob, uint32_t *restrict ids3)test view of a gob's bindings: compute / vertex / fragment shader ids, 1 = NetXec holds its pairJavaChannel.c:1454public
int32_t JavaShmGpuGobDraw(uint32_t gob, uint32_t buffer, uint32_t w, uint32_t h, uint32_t nverts, uint32_t tint)addition 2026-10-17: the Container render path consumes a gob's pair. NetXec draws gob's vertex + fragment pair (GOB_SET_SHADER) into BUFFER_MAP buffer (layout: define.h JSHM_GPU_SUB_GOBDRAW) on the GPU -> 0. No deviceJavaChannel.c:1467public
static void JshDrawNote(int i, uint32_t seq, uint32_t win, uint32_t buf)(no comment)JavaChannel.c:1550static
static void JshDrawDrop(int i)(no comment)JavaChannel.c:1561static
static void JshDrawAck(int i, uint32_t win, uint32_t seq, int has_seq)has_seq: release the entry (seq, win); legacy ACK (no seq): oldest outstanding entry on winJavaChannel.c:1568static
static int JshBlocked(int i)held while the last dn payload waits for Java's ACK: no time rule (the wait ends with the ACK or the peer leaving)JavaChannel.c:1583static
static void JshDnNow(int i, const uint8_t *b, uint32_t n)(no comment)JavaChannel.c:1588static
static void JshQClear(int i)(no comment)JavaChannel.c:1605static
static void JshQBytes(int i)(no comment)JavaChannel.c:1607static
static int JshHasDraw(const uint8_t *b, uint32_t n)(no comment)JavaChannel.c:1614static
static void JshFlush(int i, int force)force (close): every queued payload goes now, oldest firstJavaChannel.c:1623static
static int JshDn(int i, const uint8_t *b, uint32_t n)0 written or queued, JCMD_E_BUSY queue full. Commands merge into the newest queued payload, except that a payload never carries two WIN_DRAWs (the WIN_DRAW release key is the payload seq).JavaChannel.c:1641static
static void JshAckRx(int i, uint32_t op, uint32_t seq, int has_seq)(no comment)JavaChannel.c:1660static
static int JshPut(struct jsh_out *o, uint16_t op, const uint32_t *a, uint16_t na, const char *s)(no comment)JavaChannel.c:1674static
static void JshReply(struct jsh_out *o, uint16_t kind, uint32_t op, int32_t rc, uint32_t id)ACK / NACK (op, rc, id) + the up seq answered (arglen 16: "uiu" + extension)JavaChannel.c:1685static
static void JshHello(struct jsh_out *o)(no comment)JavaChannel.c:1700static
static void JshPeerGone(int i)the Java peer of slot i left (released, reclaimed, replaced): what it had not ACKed has no receiver any moreJavaChannel.c:1707static
static void JshSlotReset(int i)(no comment)JavaChannel.c:1713static
int JavaShmHookOpen(void)(no comment)JavaChannel.c:1720public
static int JshAllToJava(const uint8_t *b, uint32_t n)all commands in b[0..n) are DIR_TO_JAVA (NOP padding allowed); 0 for empty / anything elseJavaChannel.c:1737static
static void JshSay(struct jsh_out *o, const struct JavaShmCmd *c)(no comment)JavaChannel.c:1761static
static int32_t JshRun(struct jsh_out *o, const struct JavaShmCmd *c, int *nack)Run one Java -> C verb 8..21. Returns rc; *nack = 1 to answer with NACK instead of ACK.JavaChannel.c:1775static
static void JshAckFromJava(int slot, const struct JavaShmCmd *c, const uint8_t *raw)Java ACK/NACK of something C sentJavaChannel.c:1824static
static void JshUp(int slot, const uint8_t *b, uint32_t n, uint32_t useq)Java -> C payload (not a pure loopback).JavaChannel.c:1838static
void JavaShmHookTick(uint64_t now_ms)(no comment)JavaChannel.c:1885public
uint32_t JavaShmHookOutstanding(void)dn payloads still to deliver: queued, or written and not yet ACKed (hook-owned claimed slots)JavaChannel.c:1930public
uint32_t JavaShmHookPeerGone(void)(no comment)JavaChannel.c:1940public
uint32_t JavaShmHookDrain(void)Send every queued dn payload in order; each waits for Java's ACK (read by the normal tick). The drain ends when nothing is outstanding: all ACKed, or a peer left its slot (release, or the owner's stale/dead-PID reclaim onJavaChannel.c:1946public
void JavaShmHookClose(void)(no comment)JavaChannel.c:1958public
int JavaShmHookPeerGet(int slot, struct JavaShmHookPeer *out)(no comment)JavaChannel.c:1967public
int JavaShmHookSetOwner(int slot, int owner)(no comment)JavaChannel.c:1975public
int JavaShmHookOwner(int slot)(no comment)JavaChannel.c:1984public
int JavaShmHookBind(uint16_t verb, int32_t (*fn)(void *ctx, uint16_t op, const uint32_t *args, uint16_t nargs, const char *str), void *ctx)(no comment)JavaChannel.c:1986public
int JavaShmHookSend(int slot, uint16_t op, const uint32_t *args, uint16_t nargs, const char *str)---- C -> Java senders ----JavaChannel.c:1999public
int JavaShmHookSendHello(int slot, uint32_t caps, const char *name)(no comment)JavaChannel.c:2022public
int JavaShmHookSendPing(int slot, uint32_t nonce, uint32_t ms)(no comment)JavaChannel.c:2024public
int JavaShmHookSendShutdown(int slot, uint32_t reason)(no comment)JavaChannel.c:2026public
int JavaShmHookSendCloseHyperWindow(int slot, uint32_t win)(no comment)JavaChannel.c:2028public
int JavaShmHookSendGobResize(int slot, uint32_t gob, int32_t w, int32_t h)(no comment)JavaChannel.c:2030public
int JavaShmHookSendGobSetTexture(int slot, uint32_t gob, uint32_t flags, const char *name)(no comment)JavaChannel.c:2032public
int JavaShmHookSendInputEvent(int slot, uint32_t win, uint32_t code, uint32_t payload)(no comment)JavaChannel.c:2034public
int JavaShmHookSendResizeEvent(int slot, uint32_t win, int32_t w, int32_t h)(no comment)JavaChannel.c:2040public
int JavaShmHookSendFrameSync(int slot, uint32_t win, uint32_t frame, uint32_t ms)(no comment)JavaChannel.c:2042public
int JavaShmHookSendNack(int slot, uint32_t op, int32_t rc, uint32_t id)(no comment)JavaChannel.c:2044public
int JavaShmHookBufferMap(int slot, uint32_t id, uint32_t bytes, uint32_t flags)(no comment)JavaChannel.c:2047public
int JavaShmHookBufferUnmap(int slot, uint32_t id)(no comment)JavaChannel.c:2061public
static int JavaOp(struct JavaChannel *jc, uint32_t op, uint32_t a, uint64_t b)==== CHANNEL ==== JavaChannel: Open/Close, Join/Leave/Read/Write (ChannelRec.h records), "java" threadJavaChannel.c:2074static
static void JavaRd(struct JavaChannel *jc, uint32_t *m, uint32_t *a, uint64_t *b)Read: magic 'JAVA'; a = claimed | hello_rx<<1 | hello_tx<<2 | owner<<3 | slot<<8 (0xFF none) | test done<<16 | test passed<<17; b = client pid<<32 | pings (selected slot), else the run count.JavaChannel.c:2104static
struct JavaChannel * JavaChannelGet(void)(no comment)JavaChannel.c:2121public
void JavaRunMaskSet(struct JavaChannel *jc, uint32_t bits)---- shutdown run mask (JAVA_RUN_*), under the channel lock; every wait is on the channel condition, no timeout ----JavaChannel.c:2127public
void JavaRunMaskClear(struct JavaChannel *jc, uint32_t bits)(no comment)JavaChannel.c:2135public
void JavaRunMaskWaitSet(struct JavaChannel *jc, uint32_t bits)(no comment)JavaChannel.c:2143public
void JavaRunMaskWaitClear(struct JavaChannel *jc)(no comment)JavaChannel.c:2151public
static void JavaRuntimeRun(struct Channel *ch, long unused)one wake of the "java" subchannel: NetXec time onlyJavaChannel.c:2165static
static int JavaThread(void *arg)The "java" NetXecThread. Run mask: sets JAVA_RUN_THREAD | JAVA_RUN_LINK when it runs. On the shutdown signal (ri_runstate = RT_SHUTDOWN from CloseJavaChannel) it finishes its work first: SHUTDOWN to every Java client,JavaChannel.c:2198static
struct JavaChannel * OpenJavaChannel(struct MainChannel *mc)(no comment)JavaChannel.c:2236public
int JavaChannelClosedClean(uint32_t *acked, uint32_t *gone)1: the last CloseJavaChannel ended with the run mask 0 and the thread RT_STOPPEDJavaChannel.c:2311public
void CloseJavaChannel(struct JavaChannel *jc)Close = signal + wait on the shutdown run mask (HyperView halt/join): ri_runstate = RT_SHUTDOWN, broadcast, then wait on the channel condition until every JAVA_RUN_* bit is clear. No timeout and no failure path: the "java"JavaChannel.c:2321public
static void OdLogf(const char *fmt, ...)(no comment)JavaChannelDemo.inc:67static
static const char * OdRcname(int rc)(no comment)JavaChannelDemo.inc:76static
static uint64_t OdFnv(const uint8_t *restrict p)------------------------------------------------------------ ODL Objects (LE, JPort ruling)JavaChannelDemo.inc:88static
static uint32_t OdWrite(uint32_t r, uint32_t writer, const struct od_odl *restrict o)(no comment)JavaChannelDemo.inc:92static
static int OdRead(uint32_t r, struct od_odl *restrict o)(no comment)JavaChannelDemo.inc:109static
static void OdCounterObj(struct od_odl *o, uint32_t writer, uint64_t value)(no comment)JavaChannelDemo.inc:131static
static void OdHex(int region, const char *fmt, ...)(no comment)JavaChannelDemo.inc:140static
static int OdSend(uint16_t verb, const uint32_t *a, uint16_t n, const char *s)(no comment)JavaChannelDemo.inc:145static
static void OdWaitAck(uint16_t verb)(no comment)JavaChannelDemo.inc:150static
static int OdPollAck(int32_t *rc)1 = acked (rc in *rc), 0 = waiting, -1 = no answer in 2.5 s (status display of the step, as in the original)JavaChannelDemo.inc:153static
static void OdDrawFill(void)WIN_DRAW source: BUFFER_MAP 2, 64x32 BGRA bars rotating with the counterJavaChannelDemo.inc:163static
static void OdSendJava(void)(no comment)JavaChannelDemo.inc:188static
static int OdStepSend(int k)(no comment)JavaChannelDemo.inc:202static
static void OdStepOnce(void)(no comment)JavaChannelDemo.inc:231static
static void OdViewframeToJava(void)(no comment)JavaChannelDemo.inc:242static
static int32_t OdOnObjSync(void *ctx, uint16_t op, const uint32_t *a, uint16_t n, const char *s)------------------------------------------------------------ Java -> C (bound verbs, called inside JavaShmHookTick)JavaChannelDemo.inc:260static
static int32_t OdOnViewframe(void *ctx, uint16_t op, const uint32_t *a, uint16_t n, const char *s)(no comment)JavaChannelDemo.inc:283static
static void OdViewframeAbort(void)(no comment)JavaChannelDemo.inc:298static
static int32_t OdOnViewframeDone(void *ctx, uint16_t op, const uint32_t *a, uint16_t n, const char *s)(no comment)JavaChannelDemo.inc:310static
static int32_t OdOnClose(void *ctx, uint16_t op, const uint32_t *a, uint16_t n, const char *s)(no comment)JavaChannelDemo.inc:320static
static int32_t OdOnResize(void *ctx, uint16_t op, const uint32_t *a, uint16_t n, const char *s)(no comment)JavaChannelDemo.inc:322static
static int32_t OdOnTexture(void *ctx, uint16_t op, const uint32_t *a, uint16_t n, const char *s)(no comment)JavaChannelDemo.inc:329static
static int32_t OdOnAbortRemote(void *ctx, uint16_t op, const uint32_t *a, uint16_t n, const char *s)ABORT_REMOTE (verb 29) from Java: ACK rc 0 first (the hook answers in this tick), then "Abort received", demo endsJavaChannelDemo.inc:332static
static SDL_Process * OdSpawnJava(struct JavaChannel *jc)------------------------------------------------------------ Java process (ported JavaRun style: SDL_CreateProcess)JavaChannelDemo.inc:341static
static int OdJavaVerdict(void)Java's verdict from odl_java.log (this run's: Java truncates it): the last "auto: DONE ... -> PASS|FAIL" line. 1 PASSJavaChannelDemo.inc:376static
static void OdFinish(struct JavaChannel *jc, const char *why)(no comment)JavaChannelDemo.inc:395static
static void OdGPUStep(void)(no comment)JavaChannelDemo.inc:412static
static void OdGobGeometry(uint32_t *restrict px, uint32_t turn)(no comment)JavaChannelDemo.inc:456static
static void OdGobTexture(uint32_t *restrict px)(no comment)JavaChannelDemo.inc:476static
static int32_t OdGobDraw(uint32_t turn)(no comment)JavaChannelDemo.inc:485static
static void OdGobStep(void)(no comment)JavaChannelDemo.inc:500static
static void OdGPUButton(void)the GPU button (java thread, outside od_mu): compute step (jc_scale 4x2x2) + the gob pair render, a new turnJavaChannelDemo.inc:533static
static void OdGobTick(uint64_t t)(no comment)JavaChannelDemo.inc:544static
static int DemoOpen(struct JavaChannel *jc)------------------------------------------------------------ open / run / close (java thread)JavaChannelDemo.inc:553static
static void DemoRun(struct JavaChannel *jc)(no comment)JavaChannelDemo.inc:586static
static void DemoClose(struct JavaChannel *jc)(no comment)JavaChannelDemo.inc:674static
static void OdDrawBtn(const struct od_btn *b, uint32_t face)(no comment)JavaChannelDemo.inc:701static
static int OdHit(const struct od_btn *b, int x, int y)(no comment)JavaChannelDemo.inc:706static
static void OdOnClick(int x, int y)(no comment)JavaChannelDemo.inc:708static
static void OdDraw(void)(no comment)JavaChannelDemo.inc:718static
void JavaChannelFrame(void)One frame of the C JWindow, from the MainChannel process main loop (every NetXec tick). Opens the window on the first demo frame; SDL events go through EventNexus (JWindowGuiPump); clicks reach the java thread as flags.JavaChannelDemo.inc:796public
void JavaChannelWindowClose(void)main thread, after the main loop and CloseJavaChannelJavaChannelDemo.inc:823public
static uint32_t JtNowSec(void)JavaChannelTest.inc -- the JavaShm v2.1 C half tests, run THROUGH the channel (not a separate exe). Ported from javashm_be_20261015/pc_set/tests/c/test_jcmd_v21.c (LE, 17:27) into channels7; included byJavaChannelTest.inc:13static
static int TFpath(const char *posix, char *out, unsigned cap)V3.25 file-backed segment + buffers (Tony's JPort method): <JAVACHANNEL_DIR>/JavaChannel_SBI.shm and JavaChannel_SBI_buf<id>.shm. Windows (MSYS2 UCRT64): CreateFileA + CreateFileMappingA + MapViewOfFile; "Java" forJavaChannelTest.inc:31static
static void TUnlink(const char *posix)nothing is deletedJavaChannelTest.inc:35static
static int TExists(const char *posix, uint32_t *size)(no comment)JavaChannelTest.inc:36static
static void * TMapExisting(const char *posix, uint32_t bytes, void **hf, void **hm)(no comment)JavaChannelTest.inc:51static
static void * TMapExisting(const char *posix, uint32_t bytes, void **hf, void **hm)(no comment)JavaChannelTest.inc:69static
static uint32_t Sb32(const uint8_t *p)----------------------------------------------------------------- stub LE helpers (independent; V3.25 JPort ruling)JavaChannelTest.inc:83static
static uint16_t Sb16(const uint8_t *p)(no comment)JavaChannelTest.inc:84static
static void Sp32(uint8_t *p, uint32_t v)(no comment)JavaChannelTest.inc:85static
static void Sp16(uint8_t *p, uint16_t v)(no comment)JavaChannelTest.inc:86static
static int Legal(uint16_t dir, uint16_t v)----------------------------------------------------------------- codecJavaChannelTest.inc:89static
static void CodecTests(void)(no comment)JavaChannelTest.inc:95static
static void NexusTests(void)----------------------------------------------------------------- EventNexusJavaChannelTest.inc:179static
static void * Slurp(const char *path, size_t *n)----------------------------------------------------------------- SPIR-V local sizeJavaChannelTest.inc:195static
static void SpirvTests(const char *dir)(no comment)JavaChannelTest.inc:203static
static int JavaOpenBuffer(uint32_t id, uint32_t bytes, uint32_t seed)----------------------------------------------------------------- BUFFER_MAP shmJavaChannelTest.inc:234static
static int RunJava(uint32_t id, uint32_t bytes, uint32_t seed)"Java" opens the buffer in another process: fork on POSIX, CreateProcessA re-exec (--java-child) on WindowsJavaChannelTest.inc:254static
static void BufferTests(void)(no comment)JavaChannelTest.inc:276static
static void AckerBody(void)(no comment)JavaChannelTest.inc:335static
static DWORD WINAPI AckerMain(LPVOID p)(no comment)JavaChannelTest.inc:365static
static void * AckerMain(void *p)(no comment)JavaChannelTest.inc:367static
static void AckerStart(int mode)(no comment)JavaChannelTest.inc:371static
static void AckerStop(void)(no comment)JavaChannelTest.inc:372static
static void AckerStart(int mode)(no comment)JavaChannelTest.inc:375static
static void AckerStop(void)(no comment)JavaChannelTest.inc:376static
static void TUnmapSeg(void)(no comment)JavaChannelTest.inc:379static
static int StubMap(void)(no comment)JavaChannelTest.inc:389static
static uint64_t StubStateWord(uint32_t pid)(no comment)JavaChannelTest.inc:396static
static int StubClaim(uint32_t pid)(no comment)JavaChannelTest.inc:397static
static void StubRelease(int i)(no comment)JavaChannelTest.inc:406static
static uint32_t Ld32A(const uint8_t *p)(no comment)JavaChannelTest.inc:408static
static void St32R(uint8_t *p, uint32_t v)(no comment)JavaChannelTest.inc:409static
static uint32_t StubUpSeq(void)(no comment)JavaChannelTest.inc:410static
static void StubWriteUp(const uint8_t *b, uint32_t n)(no comment)JavaChannelTest.inc:411static
static uint32_t StubDnSeq(void)(no comment)JavaChannelTest.inc:422static
static int StubReadDn(uint8_t *b)(no comment)JavaChannelTest.inc:423static
static uint32_t TOtherPID(void)(no comment)JavaChannelTest.inc:443static
static void TOtherEnd(void)(no comment)JavaChannelTest.inc:454static
static uint32_t TOtherPID(void)(no comment)JavaChannelTest.inc:461static
static void TOtherEnd(void)(no comment)JavaChannelTest.inc:462static
static void StubHeartbeat(void)like real Java: keep the slot's heartbeat (state word high half) fresh, or the owner reclaims it after JSHM_STALE_SEC (slow hosts, e.g. a 1 s drain under Windows/wine, crossed that)JavaChannelTest.inc:467static
static void Tick(void)(no comment)JavaChannelTest.inc:476static
static uint32_t Enc(uint8_t *b, uint16_t op, const uint32_t *a, int na, const char *s, int slen)(no comment)JavaChannelTest.inc:478static
static uint32_t EncJack(uint8_t *b, uint16_t kind, uint32_t op, int32_t rc, uint32_t id, int with_seq)Java's ACK of a dn command, with the dn seq it answers (v2.1 extension) or legacy (no seq)JavaChannelTest.inc:487static
static uint32_t EncJackSeq(uint8_t *b, uint32_t op, uint32_t id, uint32_t seq, int nack)(no comment)JavaChannelTest.inc:492static
static int Xchg(const uint8_t *up, uint32_t n, uint8_t *dn)(no comment)JavaChannelTest.inc:497static
static int IsRep(const uint8_t *p, uint16_t kind, uint32_t op, int32_t rc, uint32_t id, uint32_t useq)C ACK/NACK: "uiu" + ack seq = the up seq it answersJavaChannelTest.inc:506static
static int32_t BoundResize(void *ctx, uint16_t op, const uint32_t *a, uint16_t na, const char *s)(no comment)JavaChannelTest.inc:512static
static int32_t BoundOdl(void *ctx, uint16_t op, const uint32_t *a, uint16_t na, const char *s)(no comment)JavaChannelTest.inc:516static
static void OneK(uint16_t kind, uint16_t op, const uint32_t *a, int na, const char *s, int32_t rc, uint32_t id, const char *what)one Java -> C command; expect exactly one reply kind(op, rc, id) carrying our up seqJavaChannelTest.inc:525static
static void JavaAckDn(int with_seq)Java ACKs whatever C last put down (so C may write again)JavaChannelTest.inc:536static
static void TGdFill(uint32_t *restrict px)(no comment)JavaChannelTest.inc:549static
static uint32_t TGdDiff(uint32_t a, uint32_t b)(no comment)JavaChannelTest.inc:561static
static void JwCb(struct JWindow *w, uint16_t op, uint32_t a0, uint32_t a1, uint32_t a2)(no comment)JavaChannelTest.inc:569static
static void LoopbackTests(void)(no comment)JavaChannelTest.inc:571static
static const char * TDefaultData(const char *argv0, char *out, size_t cap)default .spv dir: <exe dir>/data (ucrt mode copies tests/data there), else ../tests/data (box layout)JavaChannelTest.inc:1162static
static int JtRec(uint8_t *b, uint32_t op, uint32_t a, uint64_t v)----------------------------------------------------------------- channel (new): JavaChannel J/L/R/WJavaChannelTest.inc:1187static
static void ChannelTests(struct JavaChannel *jc)(no comment)JavaChannelTest.inc:1188static
static void CloseAckerBody(void)(no comment)JavaChannelTest.inc:1283static
static DWORD WINAPI CloseAckerMain(LPVOID p)(no comment)JavaChannelTest.inc:1332static
static int CtStart(void)(no comment)JavaChannelTest.inc:1334static
static void CtJoin(void)(no comment)JavaChannelTest.inc:1335static
static void * CloseAckerMain(void *p)(no comment)JavaChannelTest.inc:1337static
static int CtStart(void)(no comment)JavaChannelTest.inc:1339static
static void CtJoin(void)(no comment)JavaChannelTest.inc:1340static
static void CloseTestArm(struct JavaChannel *jc)(no comment)JavaChannelTest.inc:1343static
int JavaChannelCloseTestCheck(void)(no comment)JavaChannelTest.inc:1365public
int JavaChannelRunTests(struct JavaChannel *jc)(no comment)JavaChannelTest.inc:1384public
int JavaChannelTestRole(int argc, char **argv, int *rc)NetXec main dispatches these helper roles before SDL_Init (the test starts them with CreateProcessA).JavaChannelTest.inc:1404public
struct JavaTools * JavaToolsGet(void)(no comment)JavaChannelTools.c:35public
void JavaToolsInit(struct JavaTools *jt)fill the tool state at OpenJavaChannel: editor = this exe --channel=editor, java_home from prefsJavaChannelTools.c:42public
static void JavaCopy(char *dst, size_t cap, const char *src)==== channels8 JavaChannel.c: helpers, java_home, JVM, javac ====JavaChannelTools.c:66static
static int JavaFileExists(const char *p)---------------- java_home ----------------JavaChannelTools.c:79static
static void JavaDeriveExes(struct JavaTools *ch)(no comment)JavaChannelTools.c:87static
static void JavaHomeSettle(struct JavaTools *ch, uint32_t src)(no comment)JavaChannelTools.c:109static
int JavaLoadHomeFromPrefs(struct JavaTools *ch)(no comment)JavaChannelTools.c:123public
int JavaSetHome(struct JavaTools *ch, const char *dir)(no comment)JavaChannelTools.c:136public
static int JavaXMLGet(const char *xml, const char *tag, char *out, size_t cap)java_home_lib.sh _jh_xml_get: first <tag>value</tag> on a line.JavaChannelTools.c:147static
int JavaLoadHomeFromXml(struct JavaTools *ch, const char *xml_path)(no comment)JavaChannelTools.c:164public
const char * JavaGetHome(const struct JavaTools *ch)(no comment)JavaChannelTools.c:195public
static int JavaSpawnCapture(const char *const *args, char *out, size_t out_cap, int *exit_code)---------------- process helpers ----------------JavaChannelTools.c:204static
int JavaRun(struct JavaTools *ch, const char *const *args, char *out, size_t out_cap, int *exit_code)(no comment)JavaChannelTools.c:240public
int JavaOpenJVM(struct JavaTools *ch)(no comment)JavaChannelTools.c:254public
int JavaCompile(struct JavaTools *ch, const char *java_file, const char *out_dir, char *out, size_t out_cap)compile27: javac -encoding US-ASCII -Xmaxerrs 5 -g -d <out> <file>JavaChannelTools.c:285public
static void JvSplit(const char *path, char *dir, size_t dcap, const char **base)(no comment)JavaChannelTools.c:342static
static void JvAdd(struct JavaScan *sc, const char *path, uint32_t kind)(no comment)JavaChannelTools.c:361static
static int JvMatch(const struct JavaScan *sc, const char *name)(no comment)JavaChannelTools.c:375static
static SDL_EnumerationResult SDLCALL JvEnumCb(void *ud, const char *dirname, const char *fname)(no comment)JavaChannelTools.c:386static
int JavaListVersions(const char *path, struct JavaVersion *list, int max)(no comment)JavaChannelTools.c:399public
int JavaSnapshot(const char *path, char *rev_out, size_t rev_cap)(no comment)JavaChannelTools.c:450public
int JavaSelectVersion(const struct JavaVersion *list, int n)SDL message box popup: one button per version (latest first) + Cancel. Returns the chosen index, -1 on cancel, 0 (latest) when no GUI.JavaChannelTools.c:482public
int JavaSetEditor(struct JavaTools *ch, const char *exe)(no comment)JavaChannelTools.c:531public
int JavaEditPopup(struct JavaTools *ch, const char *java_file, int force_index)(no comment)JavaChannelTools.c:540public
int JavaEditPoll(struct JavaTools *ch, int block, int *exit_code)1 = still running, 0 = exited (handle released), -1 = none.JavaChannelTools.c:609public
static void LexNext(struct OdlLex *lx, struct OdlTok *tok)---------------- lexer (ObjectWhack tok_next) ----------------JavaChannelTools.c:741static
static void LexPush(struct OdlLex *lx, const struct OdlTok *tok)(no comment)JavaChannelTools.c:827static
static const struct OdlTypeName * OdlType(const char *s)---------------- parser (ObjectWhack parse_odl_object_block) ----------------JavaChannelTools.c:835static
static int OdlStorage(const char *s)(no comment)JavaChannelTools.c:843static
static int OdlDims(struct OdlLex *lx, struct OdlTok *tok, uint32_t dims[3])(no comment)JavaChannelTools.c:851static
static size_t OdlCap(int dc, const uint32_t dims[3], int *sparse)(no comment)JavaChannelTools.c:871static
static void OdlSparse(uint32_t dims[3], int dc, size_t count)(no comment)JavaChannelTools.c:885static
static int64_t OdlNorm(int base, int sign, int64_t iv, double fv, int is_float, int *as_float)Store like ObjectWhack store_elem: truncate to the ODL width.JavaChannelTools.c:901static
static void OdlValueList(struct OdlLex *lx, struct OdlTok *tok, struct OdlField *f, size_t cap, int depth, size_t *stored)(no comment)JavaChannelTools.c:929static
static int OdlIsKw(const char *s)Inside a block "Object" is the type (ObjectWhack treats any-case OBJECT as the keyword there, which makes "Object x = Y;" start a bogus object).JavaChannelTools.c:969static
static int OdlParseObject(struct OdlLex *lx, struct OdlObject *ob)Returns 1 if an object was parsed into ob, 0 at EOF, -1 on error.JavaChannelTools.c:975static
static char OdlJdesc(const struct OdlField *f)JVM descriptor letter per ObjectWhack java_t_ft.JavaChannelTools.c:1100static
static const char * OdlJname(char d)(no comment)JavaChannelTools.c:1114static
static double OdlDbl(int64_t bits)(no comment)JavaChannelTools.c:1129static
static void OdlJlit(char *out, size_t cap, const struct OdlField *f, size_t i)Java literal for element i (0 when past nvals, like calloc'd ObjectWhack data).JavaChannelTools.c:1137static
static void JwArray(FILE *fp, const struct OdlField *f, int dim, size_t *idx)---------------- Name.java ----------------JavaChannelTools.c:1172static
static int OdlWriteJava(const struct OdlObject *ob, const char *path)(no comment)JavaChannelTools.c:1189static
static void CwU1(uint8_t *b, uint32_t *n, uint32_t cap, uint32_t v, int *err)(no comment)JavaChannelTools.c:1258static
static void CwU2(uint8_t *b, uint32_t *n, uint32_t cap, uint32_t v, int *err)(no comment)JavaChannelTools.c:1263static
static void CwU4(uint8_t *b, uint32_t *n, uint32_t cap, uint32_t v, int *err)(no comment)JavaChannelTools.c:1268static
static uint16_t CwEntry(struct ClassWriter *cw, const uint8_t *e, uint32_t len, int slots)Add raw entry bytes (tag + payload) with dedupe; slots = 2 for long/double.JavaChannelTools.c:1275static
static uint16_t CwUTF8(struct ClassWriter *cw, const char *s)(no comment)JavaChannelTools.c:1294static
static uint16_t CwRef2(struct ClassWriter *cw, int tag, uint16_t a, uint16_t b, int two)(no comment)JavaChannelTools.c:1305static
static uint16_t CwClass(struct ClassWriter *cw, const char *name)(no comment)JavaChannelTools.c:1315static
static uint16_t CwNat(struct ClassWriter *cw, const char *name, const char *desc)(no comment)JavaChannelTools.c:1320static
static uint16_t CwNum(struct ClassWriter *cw, int tag, uint64_t bits)(no comment)JavaChannelTools.c:1325static
static void Op1(struct ClassWriter *cw, uint32_t v)(no comment)JavaChannelTools.c:1339static
static void Op2(struct ClassWriter *cw, uint32_t v)(no comment)JavaChannelTools.c:1340static
static void CwPushInt(struct ClassWriter *cw, int32_t v)(no comment)JavaChannelTools.c:1342static
static void CwPushVal(struct ClassWriter *cw, char d, int64_t v, int have)Push element value for descriptor d (JVM kinds).JavaChannelTools.c:1354static
static uint32_t CwNewarrayType(char d)(no comment)JavaChannelTools.c:1392static
static uint32_t CwAstoreOp(char d)(no comment)JavaChannelTools.c:1400static
static int CwIsZero(char d, int64_t v)(no comment)JavaChannelTools.c:1408static
static void CwBuildArray(struct ClassWriter *cw, const struct OdlField *f, char d, int dim, size_t *idx)Build (sub)array for dims[dim..]; leaves the array ref on the stack.JavaChannelTools.c:1415static
static void CwDesc(const struct OdlField *f, char *out, size_t cap)(no comment)JavaChannelTools.c:1449static
static int OdlWriteClass(const struct OdlObject *ob, const char *path)(no comment)JavaChannelTools.c:1458static
int JavaSolidSetIds(struct JavaTools *ch, const char *pod_uri, const char *webid_uri)---------------- Solid recognition (channels7 SolidControlOUT) ----------------JavaChannelTools.c:1557public
int JavaSolidAddTriple(struct JavaTools *ch, const char *s, const char *p, const char *o)(no comment)JavaChannelTools.c:1566public
static int OdlWriteSolid(struct JavaTools *ch, struct ContainerChannel *cc, const char *path)Fill a SolidChannel view and call the real SolidControlOUT. Live Solid sub (Container cc_sub[CC_SUB_SOLID]) wins when present; JavaChannelJavaChannelTools.c:1580static
static int OdlEmit(struct JavaTools *ch, const struct OdlObject *ob, const char *out_dir, struct ContainerChannel *cc)---------------- driver ----------------JavaChannelTools.c:1627static
int JavaOdlConvertString(struct JavaTools *ch, const char *src, const char *out_dir, struct ContainerChannel *cc)(no comment)JavaChannelTools.c:1653public
int JavaOdlConvertFile(struct JavaTools *ch, const char *odl_path, const char *out_dir, struct ContainerChannel *cc)(no comment)JavaChannelTools.c:1679public
static int JedInit(struct JavaEditor *restrict e)(no comment)JavaChannelTools.c:1708static
static void JedLine(char *restrict out, size_t cap)(no comment)JavaChannelTools.c:1727static
static void JedEvent(struct JavaEditor *restrict e, const SDL_Event *restrict ev, int *restrict running)(no comment)JavaChannelTools.c:1733static
static void JedRender(struct JavaEditor *restrict e)(no comment)JavaChannelTools.c:1793static
int JavaEditorRoleMain(int argc, char **argv)(no comment)JavaChannelTools.c:1810public
static uint64_t JshmNowMs(void)(no comment)JavaShm.c:21static
static uint32_t JshmPID(void)(no comment)JavaShm.c:35static
static int JshmPIDAlive(uint32_t pid)(no comment)JavaShm.c:44static
static uint64_t JshmState(uint32_t pid, uint64_t ms)(no comment)JavaShm.c:60static
static int JshmIsStale(uint64_t st, uint64_t now_ms)(no comment)JavaShm.c:65static
struct JavaShmChannel * OpenJavaShmChannel(int as_owner)(no comment)JavaShm.c:72public
void CloseJavaShmChannel(struct JavaShmChannel *ch)(no comment)JavaShm.c:130public
int JoinJavaShmChannel(struct JavaShmChannel *ch)(no comment)JavaShm.c:146public
void LeaveJavaShmChannel(struct JavaShmChannel *ch, int slot)(no comment)JavaShm.c:172public
int JavaShmHeartbeat(struct JavaShmChannel *ch, int slot)(no comment)JavaShm.c:184public
int JavaShmReclaimStale(struct JavaShmChannel *ch)(no comment)JavaShm.c:200public
int64_t WriteJavaShmChannel(struct JavaShmChannel *ch, int slot, int dir, const void *buf, uint32_t len)(no comment)JavaShm.c:216public
int64_t ReadJavaShmChannel(struct JavaShmChannel *ch, int slot, int dir, void *buf, uint32_t cap)(no comment)JavaShm.c:240public
int main(int argc, char **argv)(no comment)javachannel/javachannel_main.c:12public

Core-level functions of core 10 · Core 10 in the full manual

The > Web 4 < Channel Paradigm · full manual · privacy · contact

Hits--