With evdev loaded, evdev_open executes and evaluates the the two
printk's in the "if" block when
./evtest /dev/usb/input/event0
was executed:
Oct 9 13:01:48 lilly kernel: Here evdev_open1
Oct 9 13:01:48 lilly kernel: evdev_open2
Oct 9 13:01:48 lilly kernel: i: 0, EVDEV_MINORS: 32
So, evdev_table[i] == 0. Now, if I only knew that that meant...
static int evdev_open(struct inode * inode, struct file * file)
{
struct evdev_list *list;
int i = MINOR(inode->i_rdev) - EVDEV_MINOR_BASE;
printk ("Here evdev_open1\n");
if (i >= EVDEV_MINORS || !evdev_table[i])
{
printk ("evdev_open2\n");
printk ("i: %d, EVDEV_MINORS: %d \n", i, EVDEV_MINORS);
return -ENODEV;
}
--Doug
Douglas Roberts wrote:
> Here is the strace output:
>
--
====================================================================
Douglas Roberts, D-2 | "There is no reason anyone would
Los Alamos National Laboratory | want a computer in their home."
^ | -- Ken Olsen, President, Chairman
(505)-667-4569 | and Founder of Digital Equipment
[EMAIL PROTECTED] | Corp., 1977
====================================================================
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel