Discussion:
module for kernel
(too old to reply)
Mohsen Pahlevanzadeh
2007-05-20 12:29:07 UTC
Permalink
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.....
--Mohsen
Maxim Konovalov
2007-05-20 12:36:58 UTC
Permalink
Post by Mohsen Pahlevanzadeh
Dear all,
init_module() & cleanup_module()
But now i need to write a little module for FreeBSD kernel.Please guide
me.....
Check /usr/share/examples/kld/ .
--
Maxim Konovalov
Hans Petter Selasky
2007-05-20 13:04:18 UTC
Permalink
Post by Maxim Konovalov
Post by Mohsen Pahlevanzadeh
Dear all,
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_register,p_usb_drv);
SYSUNINIT(id,SI_SUB_KLD,SI_ORDER_ANY,usb_linux_deregister,p_usb_drv);

--HPS
Nicolas Cormier
2007-05-20 12:42:46 UTC
Permalink
Post by Mohsen Pahlevanzadeh
Dear all,
init_module() & cleanup_module()
But now i need to write a little module for FreeBSD kernel.Please guide
me.....
--Mohsen
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/
http://ezine.daemonnews.org/200007/newbus-intro.html
http://ezine.daemonnews.org/200010/blueprints.html

Hope it can help you.
--
Nicolas Cormier
Loading...