Re: Write USB Device Driver entry not called
From: eshwar
Date: Wed Oct 13 2004 - 01:37:04 EST
Open is sucessfull.... I don't think the problem the flags of open
Eshwar
----- Original Message -----
From: "Raj" <inguva@xxxxxxxxx>
To: "eshwar" <eshwar@xxxxxxxxxxx>
Cc: "Linux Kernel Mailing List" <linux-kernel@xxxxxxxxxxxxxxx>
Sent: Wednesday, October 13, 2004 11:45 AM
Subject: Re: Write USB Device Driver entry not called
> >
> > 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/