I'm having trouble knowing where to declare my code and what's the best way to "stick it into the kernel".
1. I have a [FILE]global: custom_scheduler = 0[/FILE], which the user can toggle
2. in k[FILE]ern/kern_switch.c[/FILE]:
- Code: Select all
What's the best way to include my function [FILE]my_scheduler(struct runq* rq)[/FILE]? Can I create a kld module? Or must I [FILE]#include <kern/my_scheduler.c>[/FILE] or something along those lines?
Sorry for such a dumb question, but I'm just starting with freebsd development.