Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 14 Jan 2003 06:39:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 14 Jan 2003 06:39:08 -0500 Received: from userel174.dsl.pipex.com ([62.188.199.174]:38025 "EHLO einstein31.homenet") by vger.kernel.org with ESMTP id ; Tue, 14 Jan 2003 06:39:07 -0500 Date: Tue, 14 Jan 2003 11:48:58 +0000 (GMT) From: Tigran Aivazian X-X-Sender: To: Christoph Hellwig cc: Hugh Dickins , , Subject: Re: [PATCH] don't create regular files in devfs (fwd) In-Reply-To: <20030114113135.A14279@lst.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Jan 2003, Christoph Hellwig wrote: > On Tue, Jan 14, 2003 at 09:34:52AM +0000, Tigran Aivazian wrote: > > Hi Christoph, > > > > I don't know about mtrr (probably does it for the same reason) but the > > reason why microcode driver uses a regular file is because it needs > > something that only regular files can provide --- the file size. > > > > This is an easy external "signifier" as to whether a successfull microcode > > update has occurred or not. > > It seems to work without that feature on systems that don't have devfs.. Of course it works without it. I never said it is a required feature, only a very nice to have. Namely: a) if devfs is available it provides a regular file whose size can be examined by applications and content read/written without much "fuss". In particular it is very convenient to say "vi microcode" and examine the content directly. If it was a device node then this would have been impossible. b) if devfs is not available then a limited basic functionality is provided --- i.e. just update the microcode on CPU(s) and write the log messages in the kernel log. Btw, having a size of mtrr is also useful for a similar reason. Regards Tigran - 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/