help with a module, please..

vxp vxp at digital-security.org
Fri Sep 10 20:58:40 PDT 2004


digital-security# pwd
/usr/home/vxp/mycode/reboot
digital-security# ls -l icmp.ko
-rwxr-xr-x  1 vxp  vxp  7548 Sep 10 21:31 icmp.ko
digital-security# kldload ./icmp.ko
kldload: can't load ./icmp.ko: No such file or directory
digital-security#



On Fri, 10 Sep 2004, Chuck Tuffli wrote:

> On Fri, Sep 10, 2004 at 09:34:19PM -0400, vxp wrote:
> ...
> > among other things, the compilation produces an icmp.ko  (name of my mod)
> > but when i try to do kldload ./icmp.ko it tells me:
> > digital-security# kldload icmp.kld
>
> there are 2 things wrong here
> 1) if you don't specify a path, the loader will look in /modules. so
> you need to prefix './' to the module name
>
> 2) the example below shows that you're trying to load the kld
>
> what should work better is:
>
> # kldload ./icmp.ko
>
> and then when you are finished
>
> # kldunload icmp
>
> > kldload: can't load icmp.kld: No such file or directory
> > digital-security# ls -l icmp.*
> > -rw-r--r--  1 vxp  vxp  12702 Sep 10 21:28 icmp.c
> > -rw-r--r--  1 vxp  vxp   5276 Sep 10 21:31 icmp.kld
> > -rwxr-xr-x  1 vxp  vxp   7548 Sep 10 21:31 icmp.ko
> > -rw-r--r--  1 vxp  vxp   5148 Sep 10 21:31 icmp.o
> > digital-security#
>
> --
> Chuck Tuffli    <chuck_tuffli at agilent.com>
> Agilent Technologies, Storage Area Networking
>


More information about the freebsd-hackers mailing list