From owner-freebsd-arch Thu May 10 6:49:11 2001 Delivered-To: freebsd-arch@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 67A0D37B422; Thu, 10 May 2001 06:49:07 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4ADn1308700; Thu, 10 May 2001 14:49:02 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4ADn0d32593; Thu, 10 May 2001 14:49:00 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105101349.f4ADn0d32593@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Peter Wemm , freebsd-arch@FreeBSD.org Cc: Brian Somers Subject: linker_search_path() Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 10 May 2001 14:49:00 +0100 From: Brian Somers Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, The digi driver that I re-wrote recently uses linker_load_file() to grab some throwaway data from another purpose-built digi_* module. At the moment, I use an almost-hard-coded filename of snprintf(modfile, MAXPATHLEN, "/boot/kernel/digi_%s.ko", sc->module); which isn't really very bright. Can anyone tell me what the plans are for linker_search_path() in kern/kern_linker.c ? There's a comment (written by peter): /* * There will be a system to look up or guess a file name from * a module name. * For now we just try to load a file with the same name. */ pathname = linker_search_path(modname); I wouldn't mind implementing that ``system'' or even making linker_search_path() non-static so that I can use it from dev/digi/digi.c. Comments ? Cheers. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message