MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_system_info

Function cbm_system_info

src/foundation/system_info.c:267–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265static cbm_system_info_t cached_info;
266
267cbm_system_info_t cbm_system_info(void) {
268 if (!info_cached) {
269#ifdef _WIN32
270 cached_info = detect_system_windows();
271#elif defined(__APPLE__)
272 cached_info = detect_system_macos();
273#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
274 cached_info = detect_system_bsd();
275#else
276 cached_info = detect_system_linux();
277#endif
278 info_cached = SKIP_ONE;
279 }
280 return cached_info;
281}
282
283int cbm_default_worker_count(bool initial) {
284 /* CBM_WORKERS env override (clamped to [1, CBM_WORKERS_MAX]).

Callers 7

handle_subcommandFunction · 0.85
cbm_default_worker_countFunction · 0.85
cbm_mem_init_with_capFunction · 0.85
cbm_vmem_initFunction · 0.85
cbm_daemon_host_runFunction · 0.85
test_platform.cFile · 0.85
test_worker_pool.cFile · 0.85

Calls 4

detect_system_windowsFunction · 0.85
detect_system_macosFunction · 0.85
detect_system_bsdFunction · 0.85
detect_system_linuxFunction · 0.85

Tested by

no test coverage detected