Re: kernel modules and physical memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux