ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Shared Memory between User Space App and 2.4 Kernel Mo

To:
Subject: Re: [ts-7000] Re: Shared Memory between User Space App and 2.4 Kernel Module
From: Bill Gatliff <>
Date: Thu, 05 Mar 2009 13:34:02 -0600
charliem_1216 wrote:
 >
 > Hi Marv --
 >
 > --- In  "marv.schwartz" <> wrote:
 > >
 > > Hi,
 > >
 > > How can a tslinux 2.4 kernel module and an application both access 
shared memory? In the app, a shared memory block is created or opened in 
the the following code:
 >
 > Take a look at LDD3 here:
 > http://oreilly.com/catalog/9780596005900/book/index.csp
 >
 > Especially chapter 15. Doing this with a char device may be easier 
(chapter 3).

Definitely see Chapter 15 if you want to go the true shared-memory 
route.  Note that the APIs are slightly different between LDD3 and 2.4.x 
kernels, but the general concepts still apply.

Indeed, if all you want is to move a few bytes back and forth then a 
chardev is much easier.  And a _lot_ easier with 2.6 kernels, which 
provide a miscdev framework that simplifies things greatly.


b.g
-- 
Bill Gatliff
Embedded Linux training and consulting





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU