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/
|