LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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



Closed Thread
 
Search this Thread
Old 11-10-2008, 06:03 AM   #1
ian b davidson
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Sharing Memory between driver space and user space


Hi,

The sys V functions, shmget(), shmatt(), and shmdet() allow
memory to be shared between one or more applications in userspace. The memory may be efficiently accessed in each
user application by dereferencing pointers.

Will this work between driver code and userspace?

If not, is there another method whereby memory can be shared between a device driver, and user code using pointers?

I am writing a display driver, and want to share the pixel image between user code and the display driver.
The user code will simply update the pixel image by dereferencing a pointer, and the driver will be responsible for keeping the display up to date.

Thanks for any information,

Ian Davidson
 
Old 11-10-2008, 07:35 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mapping contiguous kernel memory to user space nili Linux - Kernel 4 01-29-2008 02:43 PM
Sharing semaphore between kernel and user space balinju Programming 5 01-25-2008 01:21 PM
Isolating driver memory space rajeshwar27singh Linux - Kernel 4 10-29-2007 06:39 PM
User wants to allocate more than 3Gb memory space in RHel5 batkinso Red Hat 3 07-24-2007 11:21 AM


All times are GMT -5. The time now is 10:24 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration