Date: Mon, 16 Apr 2001 15:42:34 +0200 From: "Alex" <d_f0rce@gmx.de> To: <freebsd-hackers@freebsd.org> Subject: Is it ok to compile a device driver as a module though no load_function is declared in DRIVER_MODULE()? Message-ID: <NEBBIKIHMLCDHCFEOMAHMEEBCBAA.d_f0rce@gmx.de>
next in thread | raw e-mail | index | archive | help
Hi, i've got a little question about device drivers for FreeBSD. I'm testing my device driver by compiling it as a module and kldloading it. But as I don't want to use it as a module in the future I declared DRIVER_MODULE(..) as follows: DRIVER_MODULE( ir, isa, ir_isa_driver, ir_devclass, 0, 0); As I read on deamonnews that one has to declare a load_function to use a driver as a KLD I'm not sure if the above DRIVER_MODULE() is valid for testing. I can see that my identify and probe functions are called but I'm not sure if this can cause troubles if I don't declare a load_function but let the system get the device by identifying and probing it. Can it? If yes, how can I get "dev" to get my softc structure with device_get_softc(dev) within a load function. Sorry for my bad english. Please answer directly to me as I'm not on the list. Greetings, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBIKIHMLCDHCFEOMAHMEEBCBAA.d_f0rce>