예제 #1
0
파일: test.c 프로젝트: dycforever/ldd
static int test_init(){
	lont r ;
	printk(KERN_ALERT "test init\n");
	if(1==addOrSub)
		r = add_integer(a,b);
	else
		r = sub_integer(a,b);
	printk(KERN_ALERT "the result is %ld\n",result);
	return 0;
}
예제 #2
0
static void hello_exit(void)
{
	int res = sub_integer(2,1);
    printk(KERN_WARNING "Goodbye, cruel world!,res=%d\n",res);
}