From owner-freebsd-questions@FreeBSD.ORG Wed May 29 10:50:53 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3C1DA359 for ; Wed, 29 May 2013 10:50:53 +0000 (UTC) (envelope-from alexl@mellanox.com) Received: from eu1sys200aog117.obsmtp.com (eu1sys200aog117.obsmtp.com [207.126.144.143]) by mx1.freebsd.org (Postfix) with ESMTP id 567F6E3C for ; Wed, 29 May 2013 10:50:51 +0000 (UTC) Received: from MTLCAS01.mtl.com ([193.47.165.155]) (using TLSv1) by eu1sys200aob117.postini.com ([207.126.147.11]) with SMTP ID DSNKUaXdhU5Kr4wER4kxPq7w9yTqKmE1gbxW@postini.com; Wed, 29 May 2013 10:50:52 UTC Received: from MTLDAG01.mtl.com ([10.0.8.75]) by MTLCAS01.mtl.com ([10.0.8.71]) with mapi id 14.03.0123.003; Wed, 29 May 2013 13:28:37 +0300 From: Alex Liptsin To: "freebsd-questions@freebsd.org" Subject: How can I unload/load modules that complied inside the kernel? Thread-Topic: How can I unload/load modules that complied inside the kernel? Thread-Index: Ac5cV0cx4M98alznSxGgPd1gR8MLdg== Date: Wed, 29 May 2013 10:28:37 +0000 Message-ID: <64DAB3164E410447932305F50F896D8D6AF65F61@MTLDAG01.mtl.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.13.1] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 10:50:53 -0000 Hello. I am using FreeBSD9.1 [root@h-qa-033 ~]# uname -a FreeBSD h-qa-033 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue May 28 11:26:45 ID= T 2013 root@h-qa-033:/usr/obj/lab/odeds/freebsd/9.1.0/sys/MYKERNEL amd= 64 OFED and IB support are compiled in kernel. 1. How can I unload/load modules that complied inside the kernel? [root@h-qa-033 ~]# kldstat -v | grep mlx4 -B 5 Id Refs Address Size Name 1 10 0xffffffff80200000 13dcbf8 kernel (/boot/kernel/kernel) Contains modules: Id Name 420 mlxen 418 mlx4ib 419 mlx4 I want to unload/load mlx4ib. 2. Is there any way to take it out of kernel and load manually? Like if_lagg for example: [root@h-qa-033 ~]# kldstat Id Refs Address Size Name 1 10 0xffffffff80200000 13dcbf8 kernel 3 1 0xffffffff81812000 2197 if_mos.ko 4 1 0xffffffff81815000 690a if_lagg.ko Thanks a lot. Alex.