static int __init init_dazukofs_fs(void) { int err; err = dazukofs_dev_init(); if (err) goto error_out1; err = init_caches(); if (err) goto error_out2; err = register_filesystem(&dazukofs_fs_type); if (err) goto error_out3; printk(KERN_INFO "dazukofs: loaded, version=%s\n", DAZUKOFS_VERSION); return 0; error_out3: destroy_caches(); error_out2: dazukofs_dev_destroy(); error_out1: return err; }
/*================================= * init_lifelines_postdb -- * Initialize stuff maintained in-memory * which requires the database to already be opened *===============================*/ BOOLEAN init_lifelines_postdb (void) { STRING emsg; TABLE dbopts = create_table_str(); tagtable = create_table_str(); /* values are same as keys */ placabbvs = create_table_str(); init_valtab_from_rec("VPLAC", placabbvs, ':', &emsg); init_valtab_from_rec("VUOPT", dbopts, '=', &emsg); set_db_options(dbopts); release_table(dbopts); init_caches(); init_browse_lists(); if (!openxref(readonly)) return FALSE; transl_load_xlats(); return TRUE; }
void restart() { /* Perform some initialization to restart a program */ #ifdef USE_RAMDISK /* Read the file with name `argv[1]' into ramdisk. */ init_ramdisk(); #endif /* Read the entry code into memory. */ load_entry(); /* Set the initial instruction pointer. */ cpu.eip = ENTRY_START; /* Initialize cache */ init_caches(); /* Initialize DRAM. */ init_ddr3(); /* Initialize registers */ cpu.eflags = 0x00000002; init_seg(); }