Re: Write USB Device Driver entry not called
From: Raj
Date: Wed Oct 13 2004 - 01:17:37 EST
>
> devfd = open("/dev/usb/dabusb10",O_APPEND | S_IRUSR| S_IWUSR );
Did your open() succeed here ??? i guess S_IRUSR etc is used when you
create a new file and not when you open a new one.
> if ( write(devfd,send,512) < 0) {
> printf ("write Failed\n");
> return -1;
> }
well , if open fails above, then....
-- Raj
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/