First, let me say thanks for answering...

> What have you gathered from people who have gone before? googling python 
> vxworks
gives about 50k hits

And chances are, they will all be unrelated to my question.  WRS uses
python for various IDE scripting needs, but they do not use it on their
own platform.  Before I ported Python to VxWorks, AFAIK, it didn't
exist on that platform.

> our post does not have enough info about your environment,

That's because I'm not asking someone to specifically tell me how to do
it on VxWorks.  This is because I'm sure a VxWorks specific solution
does not exist.  I'm asking about the best road to take given a generic
python environment.  I added the extra information just in case someone
had some insight of the platform and python.  If a generic answer does
not exist then I'm sure I'll have to craft something my self...which is
also part of what I'm trying to determine.  The question is very
simple...aside from mmap, does there exist any
pre-existing facilities in python to which I can pass an address and an
length and have the associated chunk of memory exposed to python while
using an existing type, which does not attempt to malloc and copy?
Unless you have a specific answer which uses vxWorks specific
facilities, the fact that it's on VxWorks is strictly informational.

> Once you have an access-providing object, what kind of access do you require?

It doesn't really matter.  It just so happens that it's read only
access, but I can't see how it matters.  Later on, it may require write
access too.  I simply need to access the binary data byte for byte.

> What modules/libraries do you have to give you access now from python to the 
> vxworks environment?

As I said before, I have a chuck of memory, to which I have a pointer.
I know the length of the memory.  I would like to obtain acecss to the
chuck of memory.  Based on everything I'm seeing, it seems the answer
is a custom module, all the way; which I can probably base the mmap
module.

Sorry for any confusion my original question may of created.  I was
rushed when I posted it.  Hopefully this posting will be more clear as
to my intentions and needs.

Sincerely,

Greg

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to