void tcpfs_shutdown() { if (!init) return; init = 0; nmmgr_handler_remove(&vh); nmmgr_handler_remove(&vh_udpfs); }
void tcpfs_shutdown() { if (!inited) return; inited = 0; nmmgr_handler_remove(&vh.nmmgr); nmmgr_handler_remove(&vh_udpfs.nmmgr); }
void httpfs_shutdown() { if (!init) return; init = 0; nmmgr_handler_remove(&vh); }
void fs_shutdown() { if (!init) return; init = 0; nmmgr_handler_remove(&vh); old_printk_func = real_old_printk_func; if (oldfs) { nmmgr_handler_add(oldfs); oldfs = NULL; } sem_destroy(result_sema); result_sema = NULL; }
/* De-init the file system */ int fs_rz_shutdown(void) { SDDEBUG("%s\n", __FUNCTION__); root = 0; if (cached_addr) { free(cached_addr); cached_addr = 0; } cur_rd = 0; cached_addr = 0; cached_shadow = 0; memset(&myrd,0,sizeof(myrd)); memset(&mydh,0,sizeof(mydh)); cur_dh = 0; return nmmgr_handler_remove(&vh.nmmgr); }
int fs_dcload_shutdown() { /* Check for dcload */ if(*DCLOADMAGICADDR != DCLOADMAGICVALUE) return -1; /* Free dcload wrkram */ if(dcload_wrkmem) { dclsc(DCLOAD_ASSIGNWRKMEM, 0); free(dcload_wrkmem); } /* If we're not on lwIP, we can continue using the debug channel */ if(lwip_dclsc) { dcload_type = DCLOAD_TYPE_NONE; dbgio_dev_select("scif"); } return nmmgr_handler_remove(&vh.nmmgr); }
int fs_init() { nmmgr_handler_t * hnd; if (init) return 0; init = 1; result_sema = sem_create(0); real_old_printk_func = old_printk_func; old_printk_func = printk_func; hnd = nmmgr_lookup("/pc"); if (hnd) { nmmgr_handler_remove(hnd); oldfs = hnd; } /* Register with VFS */ return nmmgr_handler_add(&vh); }
int lib_close(klibrary_t * lib) { UnregisterLuaLib(lib_get_name()); return nmmgr_handler_remove(&ds_luaTask_hnd.nmmgr); }