Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268496AbUJMGeA (ORCPT ); Wed, 13 Oct 2004 02:34:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268501AbUJMGeA (ORCPT ); Wed, 13 Oct 2004 02:34:00 -0400 Received: from virt10p.secure-wi.com ([209.216.203.97]:26322 "EHLO virt10p.secure-wi.com") by vger.kernel.org with ESMTP id S268496AbUJMGdz (ORCPT ); Wed, 13 Oct 2004 02:33:55 -0400 Message-ID: <001401c4b796$abcddfb0$41c8a8c0@Eshwar> From: "eshwar" To: "Raj" Cc: "Linux Kernel Mailing List" References: <005101c4b763$5e3cba60$41c8a8c0@Eshwar> Subject: Re: Write USB Device Driver entry not called Date: Thu, 21 Oct 2004 23:22:02 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 32 Open is sucessfull.... I don't think the problem the flags of open Eshwar ----- Original Message ----- From: "Raj" To: "eshwar" Cc: "Linux Kernel Mailing List" 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/