Date: Tue, 25 Jan 2000 23:01:58 EST From: VBDOAN@aol.com To: FreeBSD-newbies@freebsd.org, freebsd-questions@freebsd.org Subject: (no subject) Message-ID: <dc.eeefd8.25bfcbb6@aol.com>
next in thread | raw e-mail | index | archive | help
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 <linux/module.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dc.eeefd8.25bfcbb6>