From owner-freebsd-arch@FreeBSD.ORG Mon Nov 17 23:15:30 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 20709BDA; Mon, 17 Nov 2014 23:15:30 +0000 (UTC) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "anubis.delphij.net", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 07380751; Mon, 17 Nov 2014 23:15:29 +0000 (UTC) Received: from zeta.ixsystems.com (unknown [12.229.62.2]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by anubis.delphij.net (Postfix) with ESMTPSA id 83FBD22140; Mon, 17 Nov 2014 15:15:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=delphij.net; s=anubis; t=1416266129; x=1416280529; bh=6A6TxCCEqUd3RS+cQhEMBxWFrpb7mhGPJYjt7VkeGYA=; h=Date:From:Reply-To:To:CC:Subject; b=bz2nO15w7YUAwtEo3NsnX+BMD5asfrTDKrEBCDj0/KtwAGYJgALoPcojhKVu5u1Dk aWV9yr8h4D7N44KfjQxFKhpSj8z1WNzyvEq4SqK8jGtm91t6xowOg1fDpqPrgiwDK8 TtaQUrJsdkDyYaY+dYl4jLvbGY35kyDVn4nUHsc8= Message-ID: <546A8191.3090208@delphij.net> Date: Mon, 17 Nov 2014 15:15:29 -0800 From: Xin Li Reply-To: d@delphij.net Organization: The FreeBSD Project MIME-Version: 1.0 To: "freebsd-arch@FreeBSD.org Arch" Subject: kernel linker: Overriding a driver shipped with kernel via module? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: re , huishao@microsoft.com, "weh@microsoft.com >> Wei Hu" , "Jun Fang \(Wicresoft\)" , kyliel@microsoft.com X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2014 23:15:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi, Right now one can declare version for a module by doing something like: MODULE_VERSION(module_name, module_version); Sometimes, it may be desirable for a vendor to release a new driver that overrides the driver shipped with the kernel itself. However, it seems that the MODULE_VERSION facility would just refuse the module when preloaded with kernel. Looking at some other vendor drivers, they are using a slightly different module name to overcome this limitation. Is that the only way to do it? Thanks in advance! Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0 iQIcBAEBCgAGBQJUaoGRAAoJEJW2GBstM+nsNF8QAK3iPIddWAsxVd49wuPvYh13 0Xn1pJOAQy5TqbPsqMUpdpGnfIhIX6fIfkxNeiZQdCHSBVePOHBn9kuhkosl6ENk xKzB7wT2bJOs/TOVV+EykmPU0/YfoTMnPL8EAeEuEs2S5QSBbcZX2axzsd8D0Bvp aKBgz5g5L4Bu5NNZ0k44x5Bp8lN22GXCD/13cy44AbW4IScPdZUQw19o3o7mnQvB 9h+4xUzArSqcGxbGdRNrBC+rSfo9uSyUk29FNWGsJo9/7FUygoU7YeU+6uTlaPfO nj7X3UDr+ed4WXyMMMnOlBG6lfmf03MEI57lVjJNrpkrcNQsfCBhvmupNStM9ouk fIVZGGLXIZLK848pUzDDuYTHsrC+fKPQYYVvsg3u3WOBNNQU2Kf59hmNY8EztaHw apd+XmUDh7IqP6xBxLt0f0Yc8T7oq4YYqVKd8kFJ8Illx+Fqj+tR7SMTkHkNHD9M /h5mZ8B5d0xN23n/uzljLibgIhLYTwRzuR4nMiO6yrKWuDKwORt75VMGTRIhrfm5 tE/vrcEgnNtmblzMh3JfSERYbP1H1n2h9r0S+8xunSJtpC/tB7hJ+X2wGN6zqLMR 7ENvOzE3gzE9KSA+XHv8SvwCLrcYvANeCl483zrnD+1YLFMZuvIzDVGe0WutamOn zMyoNwHMlf3cBl7rdtFF =j99P -----END PGP SIGNATURE-----