Re: Kernel customization.
Re: Kernel customization.
- Subject: Re: Kernel customization.
- From: Brian Tabone <email@hidden>
- Date: Tue, 4 Feb 2003 23:19:50 -0600
Mr. Wong,
Well, things are a bit different in Darwin, and actually easier I
think. If you need new kernel functionality, usually you would create/
modify a KEXT (Kernel Extension, similar to loadable modules in Linux,
but much more flexible). The nice thing about KEXT's and Darwin is that
you need not recompile your kernel to support any new KEXT's. Darwin
has a generic kernel module interface which means the kernel does not
need functionality for a specific KEXT compiled in (unlike loadable
modules in Linux)
I believe OS X comes with ATAPI CD burner support built in already,
but I'm not 100% sure. As for IP forwarding, all you have to do to turn
that on in Darwin is to set net.inet.ip.forwarding to 1. Read the
manpage on sysctl for more information. sysctl is similar in some ways
to /proc on Linux. Anyhow, a great place to start is :
http://developer.apple.com/techpubs/macosx/Darwin/index.html
Specifically, 'Kernel Programming', 'Kernel Extensions', and IOKit are
pertinent to your questions.
-I hope that helps
Brian Tabone
On Tuesday, February 4, 2003, at 07:26 PM, Mr. Wong wrote:
Hello everyone, I recently compiled the Darwin (XNU portion v.6.0)
kernel
with the help from the users of this newsgroup (thanks!). I would like
to take this a step further and actually do some kernel customizations
similar to the ones I've done in Linux. For example, I've recompiled
the
Linux kernel to specifically allow or disallow cd burning capabilities
via SCSI emulation support. Another thing I've done in linux is allow
IP
packet forwarding. The Redhat (7.3) Linux kernel appears to be much
easier to handle than the Darwin kernel because there exists GUI and
command line utilities built specifically for the purpose of
custization. Anyway, my question is this: How does one go about
modifying the XNU kernel to achieve such customizations? Is there a
GUI
or command line utility? What suggestions do you have or what should I
watch out for? Any help will be appreciated. Thanks in advance,
Matthew
K. Wong
-----------------------------------------------------------------------
-
Tired of spam? Get advanced junk mail protection with MSN 8.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.