Expand description
Tier-2 modular nv_get_interface cdylib hot-swap loader.
Resolves the single nv_get_interface entry point once at load time, caches the small
const interface tables (NvSurfaceApi, plus optional NvLayoutApi, NvComponentApi,
NvDevApi), and exposes direct zero-cost calls + state-preserving generation reloads.
Structs§
- HotApp
Instance - Reload
Outcome - Summary returned after a successful transactional
HotAppInstance::reload. - Staged
Dylib - Canonical RAII dynamic-library loader. On desktop it stages a unique copy in a private
(
0700, per-user, exclusively created) staging directory before callingdlopen(a rebuilt file at the same path always runs new code; no Windows DLL locks) and unloads before removing the copy. On Android / iOS it loads the file in place (STAGES_PRIVATE_COPY) unlessMODULE_STAGE_DIR_ENVnames a staging root, permitting unchanged bundle re-opens while refusing reloads whose bytes changed on disk.
Enums§
Constants§
- MODULE_
STAGE_ DIR_ ENV - Environment variable naming the staging root (instead of
std::env::temp_dir()); set, it stages on every platform. - STAGES_
PRIVATE_ COPY - Whether
StagedDylibloads a private copy (desktop) or the file in place (mobile).
Functions§
- is_
valid_ nv_ interface_ symbol - Returns
trueiffsymbolis"nv_get_interface"or"nv_get_interface_"followed by one or more ASCII[A-Za-z0-9_]characters (never embedded NULs or arbitrary process symbols). - resolve_
in_ process_ symbol - Resolves a validated
nv_get_interface*symbol from the running process image. - staging_
dir - The private directory staged copies for
subdirgo to (<root>/<subdir>-<euid>on unix, so users sharing/tmpnever collide;temp_dir()is already per user on Windows);Nonewhen loading in place.