Calin.
The init_module() function runs as part of the normal Linux kernel.
Therefore the all of the "usual" kernel mechanisms are available, in
particular kmalloc(). If you can't find a man-page, there are a few
web-sites with moderate kernel "hacking" guides but IMO the best source for
kernel programming information is in Rubini's book (O'Reilly) and apparently
the entire text of the second edition is available on-line. I have the 1st
ed. (I just haven't gotten around to upgrading yet). It's a fine text that
I use "all the time" and I heartily recommend it.
Norm
> -----Original Message-----
> From: Calin A. Culianu [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, October 16, 2001 8:39 AM
> To: [EMAIL PROTECTED]
> Subject: [rtl] Locking Memory in Kernel
>
>
> Hey, this may be a basic question, but what steps should a programmer take
> when allocating memory in a real-time module during init_module() to
> ensure that the memory is A) available more-or-less immediately and needs
> not be paged-in-on-use and B) the memory stays locked in RAM.
>
> -Calin
>
> -- [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/
-- [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/