On Sunday 20 May 2007 14:36, Maxim Konovalov wrote:
> On Sun, 20 May 2007, 15:59+0330, Mohsen Pahlevanzadeh wrote:
> > Dear all,
> > When you wanna write a module for linux kernel,you have 2 function:
> > init_module() & cleanup_module()
> > But now i need to write a little module for FreeBSD kernel.Please guide
> > me.....

>
> Check /usr/share/examples/kld/ .


Also check out SYSINIT() :

SYSINIT(id,SI_SUB_KLD,SI_ORDER_FIRST,usb_linux_reg ister,p_usb_drv);
SYSUNINIT(id,SI_SUB_KLD,SI_ORDER_ANY,usb_linux_der egister,p_usb_drv);

--HPS
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...reebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"