Example #1
0
File: bc.c Project: evilzone/CSE506
void
bc_init(void)
{
	set_pgfault_handler(bc_pgfault);
	//cprintf("in bc_init hello\n");
	check_bc();
}
Example #2
0
File: bc.c Project: YYmooon/439h
void
bc_init(void)
{
    BC_DEBUG("Initializing the block count\n");
    set_pgfault_handler(bc_pgfault);
    check_bc();
}
Example #3
0
    void
bc_init(void)
{

    set_pgfault_handler(bc_pgfault);

    check_bc();
}
Example #4
0
File: bc.c Project: LancelotGT/JOS
void
bc_init(void)
{
	struct Super super;
	set_pgfault_handler(bc_pgfault);
	check_bc();

	// cache the super block by reading it once
	memmove(&super, diskaddr(1), sizeof super);
}
Example #5
0
File: cache.c Project: jgfenix/efl
static Eina_File *
open_src(const char *fname, Eina_Bool *bc)
{
   Eina_File  *f   = NULL;
   const char *ext = strstr(fname, ".lua");
   if (ext && !ext[4])
     {
        char buf[PATH_MAX];
        snprintf(buf, sizeof(buf), "%sc", fname);
        f = check_bc(eina_file_open(buf, EINA_FALSE), fname, bc);
     }
   if (!f) f = eina_file_open(fname, EINA_FALSE);
   return  f;
}