From: Hao Kong <wzxhmy@gm...> - 2006-07-03 03:22:13
I am begining to use LTP. But I met some problems and can't find a
good explaination for it. It will be appreciated if who can help me
get the answer.
Problem : LTP driver test
It seems some functions in the Device_Driver test for latest LTP
don't match with the kernel 2.6.*. The parameter number and types are
structure has no member named `refcount'
refer to the head files <linux/device.h> and <linux/kobject.h>, I changed "
a = atomic_read(&drv->kobj.refcount);" to "a =
implicit declaration of function `sys_device_register'
refer to head file <linux/sysdev.h>,changed :
extern int sys_device_register(struct sys_device *);
extern void sys_device_unregister(struct sys_device *);
extern int sysdev_register(struct sys_device *);
extern void sysdev_unregister(struct sys_device *);
Then it can be compiled and insmod to kernel. But it seems there are
so many Device Driver functions which I (who is not familiar with
Device Driver coding) can not handle them all are not yet changed to
suit the new kernel:(
Some guys have interest of solving them and contribute some new Driver
T I A ,