From owner-p4-projects@FreeBSD.ORG Fri Apr 9 12:03:58 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8E7AE16A4D0; Fri, 9 Apr 2004 12:03:58 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5566716A4CE; Fri, 9 Apr 2004 12:03:58 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2631143D31; Fri, 9 Apr 2004 12:03:58 -0700 (PDT) (envelope-from peter@evilpete.dyndns.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id D50E22A8E0; Fri, 9 Apr 2004 12:03:57 -0700 (PDT) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id AE45EE259; Fri, 9 Apr 2004 12:03:59 -0700 (PDT) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (8.12.11/8.12.11) with ESMTP id i39J38lM065599; Fri, 9 Apr 2004 12:03:08 -0700 (PDT) (envelope-from peter@overcee.wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by overcee.wemm.org (8.12.11/8.12.11/Submit) id i39J38fk065598; Fri, 9 Apr 2004 12:03:08 -0700 (PDT) (envelope-from peter) From: Peter Wemm To: Pawel Jakub Dawidek Date: Fri, 9 Apr 2004 12:03:08 -0700 User-Agent: KMail/1.6.1 References: <200404070047.i370lZZ3024818@repoman.freebsd.org> <20040407060828.GF661@darkness.comp.waw.pl> In-Reply-To: <20040407060828.GF661@darkness.comp.waw.pl> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404091203.08126.peter@wemm.org> cc: Perforce Change Reviews Subject: Re: PERFORCE change 50544 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 19:03:59 -0000 On Tuesday 06 April 2004 11:08 pm, Pawel Jakub Dawidek wrote: > On Tue, Apr 06, 2004 at 05:47:35PM -0700, Peter Wemm wrote: > +> http://perforce.freebsd.org/chv.cgi?CH=50544 > +> > +> Change 50544 by peter@peter_daintree on 2004/04/06 17:47:08 > +> > +> mark runtime kldload as done. > +> add new entry for kldxref and loader preload support. > +> > [...] > +> +kld preload support, teach the loader how to read new-style .ko > files, +> +as well as kldxref. kldxref should be easy, it should be > able to just +> +read the modmetadata section directly, apply the > relocs for that section, +> +and use that to find the pointers to the > other sections. > > It would be cool, if we will be able to read (from kernel) > modmetadata before module is loaded. I think this is what is stopping > as to check if module with the same name already exists. > > I may be wrong, while I haven't spend enough time on this yet. > If we are able to get only modmetadata from .ko from inside the > kernel (before loading module), tell me how, so we can fix this > long-standing KLD issue. Hmm. I know we can suck it into memory and check the metadata right there, and fail the load if there are duplicate modules *before* we begin registration.. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5