On Wed, 26 Sep 2001, A V wrote:
>
>
> Hi Friends & Gurus,
>
> I want to know the starting address of a module in
> memory. i.e The address at which a module is loaded in
> memory. If anybody know how memory is allocated to a
> module when put in kernel space please tell me.
> And if anybody know memory management of RTLinux
> please tell me.
>
> Regards
> Venkat
>
Memory for modules is located by the function 'sys_create_module' in the
file kernel/module.c in the linux kernel tree. The memory itself is
located by vmalloc (mm/vmalloc.c). Look at these functions in the Linux
source code to understand the exact handling of memory. If you look at
these functions, it is easy to determine the starting address of a module.
To understand the memory management of Linux, www.lwn.net -> kernel ->
kernel_mm would be a good place to start at. The topic is much too wide to
explain it in a single mail, sorry... ;-)
Regards
Alexander
--
-----------------------------------------------------------------------
Dipl.-Ing. Alexander von Buelow http://www.rcs.ei.tum.de
Institute for Real-Time Computersystems (RCS) fon +49/89-289-23556
Technische Universitaet Muenchen, D-80290 Muenchen fax +49/89-289-23555
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/