Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268515AbUJMGP4 (ORCPT ); Wed, 13 Oct 2004 02:15:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268496AbUJMGP4 (ORCPT ); Wed, 13 Oct 2004 02:15:56 -0400 Received: from rproxy.gmail.com ([64.233.170.194]:49633 "EHLO mproxy.gmail.com") by vger.kernel.org with ESMTP id S268483AbUJMGPs (ORCPT ); Wed, 13 Oct 2004 02:15:48 -0400 Message-ID: Date: Wed, 13 Oct 2004 11:45:43 +0530 From: Raj Reply-To: Raj To: eshwar Subject: Re: Write USB Device Driver entry not called Cc: Linux Kernel Mailing List In-Reply-To: <005101c4b763$5e3cba60$41c8a8c0@Eshwar> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <005101c4b763$5e3cba60$41c8a8c0@Eshwar> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 585 Lines: 19 > > 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/