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

2013-05-29 Thread Alex Liptsin
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 IDT 
2013 root@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@h-qa-033 ~]# kldstat -v | grep mlx4 -B 5
Id Refs AddressSize Name
1   10 0x8020 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 AddressSize Name
1   10 0x8020 13dcbf8  kernel
31 0x81812000 2197 if_mos.ko
41 0x81815000 690a if_lagg.ko

Thanks a lot.
Alex.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


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

2013-05-29 Thread Olivier Nicole
 [root@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@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?

kldload and kldunload should be what you are looking for.

Olivier 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


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

2013-05-29 Thread Julian H. Stacey
Hi, Reference:
 From: Olivier Nicole olivier.nic...@cs.ait.ac.th 
 Date: Wed, 29 May 2013 17:54:59 +0700 (ICT) 

Olivier Nicole wrote:
  [root@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@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?
 
 kldload and kldunload should be what you are looking for.

[Unless things have got more flexible] I dont believe you can
unload/load modules that complied inside the kernel.  I think you
need to compile a new kernel without the modules you want to toggle
on  off, Then you can use kldload and kldunload.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with  .
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org