LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-21-2008, 07:40 AM   #1
soararing
LQ Newbie
 
Registered: Jul 2005
Posts: 13

Rep: Reputation: 0
linux driver how to mmap many kernel address to user space


current scenario is:
user mode need some system memory, but these memory need to be allocated in kernel mode, user mode use mmap call to map these kernel address to user mode, so driver how to implement mmap driver interface.

we should not allocate a big memory in kernel and map it once, because kernel don't know how much the memory user need.

so how to solve this problem, thanks!
 
Old 05-22-2008, 05:32 AM   #2
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Why not allocating in the mmap driver implementation?
 
  


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
How do you MMAP PCI Configurations Space to User Space jbreaka4lyfe Linux - Kernel 0 03-03-2008 01:15 PM
Kernel and user space address ? ashok449 Linux - Kernel 1 12-29-2007 12:17 PM
Mmap and munmap physical address to user space karttik Linux - Software 0 10-28-2007 02:10 AM
mmap-ed IO between application in user mode and SCSI driver fails after lk 2.6.15 rongjie Linux - General 0 06-21-2007 01:58 AM
VMWare Linux Kernel address space mis-match madiyaan Linux - Newbie 4 06-19-2006 09:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:55 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