Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2001 11:43:09 -0600
From:      Lucas Bergman <lucas@slb.to>
To:        Marcus Ramos <marcus@ansp.br>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Insmod equivalent
Message-ID:  <20010206114309.B3979@billygoat.slb.to>
In-Reply-To: <3A802A6B.94A1E6BC@ansp.br>; from marcus@ansp.br on Tue, Feb 06, 2001 at 02:46:35PM -0200
References:  <3A802A6B.94A1E6BC@ansp.br>

next in thread | previous in thread | raw e-mail | index | archive | help
> I've compiled a file named "ttime.c" into "ttime.o" and now I want
> to load it into the kernel. Since "ttime.c" was originally written
> for Linux, the instructions tell me to use "insmod ttime.o". Since
> it seems that command "insmod" does not exist in FreeBSD, I ask:
> what is the equivalente one ? How can I have the ".o" file (a PCI
> driver) loaded into the kernel ?

To load a kernel module, use kldload(8).  Note that your Linux module
is probably not going to work without some pretty serious screwing
around.  See /usr/src/sys/modules for some examples.  Also, by
convention, kernel modules in FreeBSD have the extension `.ko', not
`.o'.

Lucas


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010206114309.B3979>