Re: Memory Lay out - shared library

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

 



On 4/11/06, srinivas bakki <srinivas.bakki@xxxxxxxxx> wrote:
hi all,
 
  i guess this was not what was asked !!!
 
to make it clear .. say we have a program running in the RAM and it needs to load a library to access some function from the secondary storage and map it into its address space. how does the process get to know whether its present in the RAM already or the library is to be copied form the storage.


When the process touches the memory mapped in for the shared library (the shared library gets mapped in via an mmap()), the kernel will load the appropriate pages if they haven't been loaded already. Do remember that *this happens transparent to the process*.

--
c u
./hareesh

[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