Kernel Option

mfarrag

Developer
Hello guys,

I want to make a new scheduler for my kernel. I have removed ule_scheduler from my kernel tree and created new one. I made a patch but I don't know how to apply it to my kernel. Can I add my new scheduler as a new option in the kernel?

Regards,

Mohammed
 
That's interesting. Someone who can write new scheduler for FreeBSD, don't know how to apply patch...
Even more, I wonder how did you made that patch (you didn't test it?).

Well back to topic: check out from which directory the patch was made, and cd to it, then simply # patch < /path/to/mysterious/FreeBSD/new/scheduler.diff

The patch is probably against the /usr/src directory.

After that you need to rebuild kernel, reboot and cross fingers.
 
First of all, thanks for your reply.

Second, my question was clearly about how to build the kernel with my scheduler from scratch. I don't mean to build the kernel with ULE_SCHEDULER and then apply the patch. What I need is to compile the kernel with the new scheduler from scratch without using patches. It seems exhaustive but I want to have a kernel indepenedent of the ULE.

Regards,

Mohammed
 
Back
Top