示例#1
0
文件: kernel_module.c 项目: Rubusch/c
int skull_init(void)
{
  // register the functionality of the module 
  // e.g. register_netdevice, inet_add_protocol, dev_add_pack, etc.

#ifdef CONFIG_PROC_FS
  register_proc_files();
#endif /* CONFIG_PROC_FS */

  return 0;
}
示例#2
0
int test_proc_init(void) 
{ 
	return register_proc_files(); 
}