From owner-freebsd-questions Tue Jan 25 20: 2:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from imo25.mx.aol.com (imo25.mx.aol.com [152.163.225.69]) by hub.freebsd.org (Postfix) with ESMTP id 35BD714D64; Tue, 25 Jan 2000 20:02:15 -0800 (PST) (envelope-from VBDOAN@aol.com) Received: from VBDOAN@aol.com by imo25.mx.aol.com (mail_out_v24.6.) id n.dc.eeefd8 (4327); Tue, 25 Jan 2000 23:01:58 -0500 (EST) From: VBDOAN@aol.com Message-ID: Date: Tue, 25 Jan 2000 23:01:58 EST Subject: (no subject) To: FreeBSD-newbies@freebsd.org, freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Windows AOL sub 45 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am running freeBSD (based pm 4.4BSD) and saw from a linux device driver book (O'Reilly - by Alessandro Rubini) the following way of loading and unloading a test sample device driver. What is the equivalent way of doing the same thing in freeBSD? Thanks B. Doan #define MODULE #include int init_module(void) { printk("<1> Hello, world \n"); return 0; } void cleanup_module(void) { printk("<1> Goodbye, world\n"); } ROOT> gcc -c hello.c ROOT> insmod hello.o Hello, world ROOT> rmmod hello Goodbye, world ROOT> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message