Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 27 Apr 2001 11:18:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 27 Apr 2001 11:17:54 -0400 Received: from AMontpellier-201-1-2-100.abo.wanadoo.fr ([193.253.215.100]:65277 "EHLO microsoft.com") by vger.kernel.org with ESMTP id ; Fri, 27 Apr 2001 11:17:40 -0400 Subject: Re: Can the kernel access /? From: Xavier Bestel To: Matt Cc: linux-kernel@vger.kernel.org In-Reply-To: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Apr 2001 17:15:03 +0200 Message-Id: <988384505.4081.1.camel@nomade> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Le 27 Apr 2001 15:28:04 +0100, Matt a ?crit : > I'm writing a device driver for a DSP card that requires some software > loaded onto the card for it to function, currently I'm copying the > software to the /dev node and the driver is doing the magic in it's > write() handler. > > Can the driver pull the file from the filesystem if I were to pass the > path of the file as an argument on loading the module? It's generally considered a better idea to load your firmware with a userspace app doing an ioctl or a mmap on your driver - no nasty races to take care of, only proven codepaths used. Xav - 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/