How can I unload/load modules that complied inside the kernel?

Alex Liptsin alexl at mellanox.com
Wed May 29 10:50:53 UTC 2013


Hello.

I am using FreeBSD9.1

[root at h-qa-033 ~]# uname -a
FreeBSD h-qa-033 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue May 28 11:26:45 IDT 2013     root at h-qa-033:/usr/obj/lab/odeds/freebsd/9.1.0/sys/MYKERNEL  amd64

OFED and IB support are compiled in kernel.


1.      How can I unload/load modules that complied inside the kernel?


[root at 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 at 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.



More information about the freebsd-questions mailing list