Skip to content

sco_ipc_v1.ring_init

Lays out an empty ring at offset with capacity data bytes (a power of two, at least 64), in one direction (SCO_IPC_TO_PEER or SCO_IPC_FROM_PEER). Re-initializing a ring at the same offset resets it. SCO_BAD_ARG: outside the mapping, overlapping another ring, a bad capacity or direction. SCO_TOO_MANY: SCO_IPC_MAX_RINGS already.

sco_result (*)(sco_plugin *, uint64_t, uint64_t, uint64_t, uint32_t)

Service index

Property Value
Symbol sco_ipc_v1.ring_init
Record ID sco-ipc-v1-ring-init
Service sco.ipc
Table sco_ipc_v1
Version macro SCO_IPC_VERSION_1_0
Packed table version 65536
Since / availability size >= 48; 1.0
Complete member extent (x64 bytes) 48
Table size (x64 bytes) 80

Header source

sco_result (*ring_init)(sco_plugin* self, uint64_t channel, uint64_t offset, uint64_t capacity, uint32_t direction);
Lays out an empty ring at offset with capacity data bytes (a power of two, at least 64), in one direction (SCO_IPC_TO_PEER or SCO_IPC_FROM_PEER). Re-initializing a ring at the same offset resets it. SCO_BAD_ARG: outside the mapping, overlapping another ring, a bad capacity or direction. SCO_TOO_MANY: SCO_IPC_MAX_RINGS already.

Absent table: query_service NOT_FOUND; stopped: UNAVAILABLE; invalid/released self: BAD_ARG; unknown/non-owned channel: NOT_FOUND; allocation exceptions: TOO_MANY. Additional failures/output state unspecified unless described in the buffer contract.

Absent table: query_service NOT_FOUND

Host owns mapping/channel; data copied via host staging buffers. No allocation transfer except borrowed view, never free it.

Any thread; per-channel lock during copy. Recursive reentrancy unspecified.

unspecified

unspecified

No in-flight cancellation; close/ordinary unload/non-retained crash cleanup marks closed and unmaps channels. Retained-provider faults skip owner resource-release hooks and require restart; backing resources remain retained, not safe for cached calls.

Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.

Language Catalogue status Source evidence / wrapper tokens
c direct include/sco_ipc.h
(*ring_init)
cpp typed-wrapper include/scosdk/ipc.hpp
return detail::CanCall(t_, &sco_ipc_v1::ring_init) ? t_->ring_init(self_, id_, offset, capacity, direction) : (t_ ? SCO_UNAVAILABLE : r_);
csharp unsupported docs/sdk-csharp.md
There are no C# wrappers for sco.ipc and sco.net yet
lua unsupported docs/ipc.md
Lua plugins get no sco.ipc

None identified in the catalogue; this is not proof none can exist.

ABI pins prove layout, not semantic behavior or a live game session.