示例#1
0
文件: bc.c 项目: evilzone/CSE506
void
bc_init(void)
{
	set_pgfault_handler(bc_pgfault);
	//cprintf("in bc_init hello\n");
	check_bc();
}
示例#2
0
文件: bc.c 项目: YYmooon/439h
void
bc_init(void)
{
    BC_DEBUG("Initializing the block count\n");
    set_pgfault_handler(bc_pgfault);
    check_bc();
}
示例#3
0
文件: bc.c 项目: HeidCloud/Hypervisor
    void
bc_init(void)
{

    set_pgfault_handler(bc_pgfault);

    check_bc();
}
示例#4
0
文件: bc.c 项目: 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);
}
示例#5
0
文件: cache.c 项目: 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;
}