nx_mcp_pending_candidate_t230.nx
buildroot/runtime/nx_mcp_pending_candidate_t230.nx
about
MCP-specific identity ownership over the generic process pool.
dependencies 5 imports · 2 importers
imports: nx_mcp_control.nxnx_request_pool_candidate_t230.nxnx_http_response_parse.nxnx_mcp_route.nxnx_sha256.nx
imported by: nx_mcp_queue_stdio_gate_t230.nxnx_mcp_stdio_candidate_t230.nx
structs
| 5 | struct NxMcpPending |
| 401 | struct NxMcpQueued |
| 406 | struct NxMcpQueue |
consts
| 17 | const MP_SPAWN_DUP: i64 = 0 - 2 |
| 21 | const MP_CODE_DEADLINE: i64 = 0 - 32012 |
| 22 | const MP_CODE_WORKER: i64 = 0 - 32603 |
| 23 | const MP_SIG_ALARM: i64 = 14 |
| 410 | const MQ_CODE_CANCEL:i64=0-32800 |
| 411 | const MQ_CODE_CAPACITY:i64=0-32000 |
| 412 | const MQ_CODE_DUP:i64=0-32013 |
| 413 | const MQ_DECIMAL_I64_BYTES:i64=20 |
functions
| 26 | func mp_admit(p: *NxRequestPool, body: *u8, control: *NxMcpControl, output: i64) -> i64 |
| 39 | func mp_at(rows: *u8, slot: i64) -> *NxMcpPending |
| 42 | func mp_clear(row: *NxMcpPending) -> i64 |
| 47 | func mp_sweep(p: *NxRequestPool, rows: *u8) -> i64 |
| 56 | func mp_normalize(kind: i64, src: *u8, n: i64, dst: *u8) -> i64 |
| 65 | func mp_find(p: *NxRequestPool, rows: *u8, kind: i64, data: *u8, n: i64) -> i64 |
| 80 | func mp_spawn(p: *NxRequestPool, rows: *u8, body: *u8, control: *NxMcpControl) -> i64 |
| 106 | func mp_cancel(p: *NxRequestPool, rows: *u8, body: *u8, control: *NxMcpControl) -> i64 |
| 126 | func mo_prefix_id(src: *u8, n: i64, kind: *i64, off: *i64, len: *i64) -> i64 |
| 194 | func mpe_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 195 | func mpe_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; var p: i64 = o; while s[i] != (0 as u8) { d[p] = s[i]; p = p + 1; i = i + 1 } return p } |
| 196 | func mpe_catb(d: *u8, o: i64, s: *u8, n: i64) -> i64 { var i: i64 = 0; while i < n { d[o+i] = s[i]; i = i + 1 } return o + i } |
| 197 | func mpe_catn(d: *u8, o: i64, v: i64) -> i64 |
| 213 | func mpe_cat_esc(d: *u8, o: i64, s: *u8, n: i64) -> i64 |
| 240 | func mpe_write_error_detail(fd: i64, id_kind: i64, id_ptr: *u8, id_len: i64, escape: i64, code: i64, stage: *u8, cause: *u8, measured: i64, next: *u8, detail:*u8, detail_n:i64) -> i64 |
| 279 | func mp_recover_pump_timeout(p: *NxRequestPool, rows: *u8, accept_input: i64, protocol_fd: i64, timeout_secs: i64, wait_ms:i64) -> i64 called by 2: mp_recover_pumpmain calls 7: rp_pump_timeoutmp_sweeprp_workerrp_cancel_ownedmp_atmpe_write_error+1 |
| 318 | func mpe_http_header(src:*u8,n:i64,p:*i64,key:*u8,offset:*i64,length:*i64)->i64 |
| 331 | func mpe_http_field(d:*u8,o0:i64,src:*u8,n:i64,p:*i64,name:*u8,label:*u8)->i64 |
| 341 | func mpe_http_evidence(src:*u8,n:i64,p:*i64,out_len:*i64)->*u8 called by 1: ms_exchange calls 7: mpe_catmpe_catnmpe_http_fieldsha256_digest_checked_nativenx_value_parse_jsonmr_member+1 |
| 391 | func mpe_write_error(fd:i64,id_kind:i64,id_ptr:*u8,id_len:i64,escape:i64,code:i64,stage:*u8,cause:*u8,measured:i64,next:*u8)->i64 |
| 395 | func mp_recover_pump(p:*NxRequestPool,rows:*u8,accept_input:i64,protocol_fd:i64,timeout_secs:i64)->i64 {return mp_recover_pump_timeout(p,rows,accept_input,protocol_fd,timeout_secs,-1)} |
| 414 | func mq_new(budget:i64,wait_ms:i64)->*NxMcpQueue called by 1: main |
| 421 | func mq_event(q:*NxMcpQueue,node:*NxMcpQueued,state:*u8,dispatched:i64)->i64 called by 4: mq_enqueuemq_cancelmq_expirems_dispatch_queue calls 5: mpe_slenmpe_catmpe_catbmpe_catnrp_write |
| 446 | func mq_same(node:*NxMcpQueued,kind:i64,id:*u8,n:i64)->i64 |
| 450 | func mq_error(node:*NxMcpQueued,fd:i64,code:i64,cause:*u8,measured:i64)->i64 |
| 453 | func mq_unlink(q:*NxMcpQueue,prior:*NxMcpQueued,node:*NxMcpQueued)->i64 |
| 459 | func mq_free(node:*NxMcpQueued)->i64 {return sys_munmap_direct(node as *u8,node.bytes)} |
| 460 | func mq_enqueue(q:*NxMcpQueue,p:*NxRequestPool,rows:*u8,body:*u8,n:i64,control:*NxMcpControl,now:i64,fd:i64)->i64 |
| 505 | func mq_cancel(q:*NxMcpQueue,body:*u8,control:*NxMcpControl,fd:i64)->i64 |
| 523 | func mq_expire(q:*NxMcpQueue,now:i64,fd:i64)->i64 |
| 536 | func mq_wait(q:*NxMcpQueue,now:i64)->i64 called by 1: main |
| 545 | func mq_ready(q:*NxMcpQueue,p:*NxRequestPool)->i64 |
| 558 | func mq_default_budget(workers:i64,request_cap:i64)->i64 called by 1: main |