LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-25-2015, 05:27 AM   #1
david_bowie
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Rep: Reputation: Disabled
want to access memory reserved by alloc_bootmem() in /dev like ramX


Hey Guys !
i know what alloc_bootmem() does !!
i want to know if it is possible that one could access memory reserved by alloc_bootmem() like the way with ram disks!! i mean like a path in /dev/...!!

if so, how ? if not , how can we access this memory like the way with block devices ?
 
Old 07-26-2015, 02:38 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
alloc_bootmem allocates from the boot-time allocator. This allocator should be interesting to you only if you're dealing with early boot time code. Note that at this time the /dev/ filesystem may not exist yet for example.

What do you want to do? Which memory allocated by alloc_bootmem you'd like to access?
 
Old 07-26-2015, 11:43 PM   #3
david_bowie
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
@MARA : thnks for the answer

yet i have another question : there is a module that i should add to my kernel . i am not suppose to change its code or even look at it source (for security matters!!!) this module needs dedicated memory that only it could manipulate its DATA , and the access to this memory should be like the way with Block devices.like /dev/.. files like sda.... .

i was thinking of reserving memory at boot time and then somehow assign it to this module . is it possible ?

do you have any suggestion ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mmap of several GB of reserved memory using PeterWurmsdobler Linux - Kernel 17 08-17-2015 09:50 AM
kdump reserved memory not getting reserved Rohant Linux - Server 3 07-02-2013 08:59 AM
Anyone know how to fix this: Memory for crashkernel is not reserved abefroman Linux - Server 4 02-28-2013 09:22 AM
Guest Kernel Reserved Memory Very High nayabingi Linux - Virtualization and Cloud 1 04-14-2011 11:55 AM
Reducing Reserved memory in montavista linux sudip06 Debian 0 10-13-2005 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration