From owner-freebsd-questions Tue Feb 6 9:46: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id 97DE237B4EC for ; Tue, 6 Feb 2001 09:45:44 -0800 (PST) Received: (qmail 16656 invoked by uid 1000); 6 Feb 2001 17:43:09 -0000 Date: Tue, 6 Feb 2001 11:43:09 -0600 From: Lucas Bergman To: Marcus Ramos Cc: freebsd-questions@freebsd.org Subject: Re: Insmod equivalent Message-ID: <20010206114309.B3979@billygoat.slb.to> Reply-To: lucas@slb.to References: <3A802A6B.94A1E6BC@ansp.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A802A6B.94A1E6BC@ansp.br>; from marcus@ansp.br on Tue, Feb 06, 2001 at 02:46:35PM -0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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