From owner-freebsd-current@FreeBSD.ORG Fri Apr 6 18:11:41 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F79616A401; Fri, 6 Apr 2007 18:11:41 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id DE72D13C48C; Fri, 6 Apr 2007 18:11:40 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id EFEA58BCF4B; Fri, 6 Apr 2007 20:11:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bk-5OOytgqXy; Fri, 6 Apr 2007 20:11:39 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E9FD08BCEEC; Fri, 6 Apr 2007 20:11:38 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l36IBcUj090910; Fri, 6 Apr 2007 20:11:38 +0200 (CEST) (envelope-from rdivacky) Date: Fri, 6 Apr 2007 20:11:38 +0200 From: Roman Divacky To: Jung-uk Kim Message-ID: <20070406181138.GA90738@freebsd.org> References: <20070407023855.ede13b76.nork@FreeBSD.org> <20070406174305.GA90217@freebsd.org> <200704061407.35340.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200704061407.35340.jkim@FreeBSD.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-current@FreeBSD.org, Norikatsu Shigemura Subject: Re: Cannot mount linprocfs by unresolving sysvs?m symbols X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 18:11:41 -0000 > > is there a way to do this nicely? > > Probably we can improve kernel linker to do better job. ;-) I mean, > load all dependencies before look up symbols. thats not what I mean.. what I want is something like if (function_present(foo)) x = foo(); else x = SAFE_VALUE; use x somehow; so we don't have to have all modules loaded etc. the same could be done for some syscalls, imagine linux_foo(params) { if (function_present(foo)) return foo(params); else return ENOSYS; } I like this better then loading all possible modules.