void knh_checkSecurityAlert(void) { char path[BUF_LEN] = {'\0'}; unsigned int clock = getclock(); unsigned int mem = getmem(); int ncpu = getncpu(); knh_snprintf(path, 512, UPDATE_PATH, K_DIST, K_VERSION, K_PLATFORM, CPU_NAME, K_REVISION, clock, mem, ncpu); DBG_P("Path == [%s] \n", path); serverconnect(path); }
void runtime·osinit(void) { runtime·ncpu = getncpu(); }