David Wuertele wrote:
Let's say I load a kernel module that has this line in it:
module_init(mymod_init);
At the time that mymod_init() is called, can I be sure that the entire
module code and static data is stored in physical RAM? If I call:
yes.
save_flags(flags); cli();
here you are disabling interrupts, so the critical section following is
not interrupted before completion.
inside mymod_init(), I'm preventing page swaps from happening, right?
swapping wont happen with kernel code.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/