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

    set_pgfault_handler(bc_pgfault);

    check_bc();
}
Exemplo n.º 4
0
Arquivo: bc.c Projeto: 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);
}
Exemplo n.º 5
0
Arquivo: cache.c Projeto: 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;
}