Messages in this thread |  | | From | "eshwar" <> | Subject | Re: Write USB Device Driver entry not called | Date | Thu, 21 Oct 2004 23:22:02 +0530 |
| |
Open is sucessfull.... I don't think the problem the flags of open
Eshwar
----- Original Message ----- From: "Raj" <inguva@gmail.com> To: "eshwar" <eshwar@moschip.com> Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |