Re: access to preallocated block of memory?

2005-12-16 Thread Greg Copeland
What license does the code use? The PKG-INFO file says its MIT? This accurate? I'm still looking over the code, but it looks like I can do exactly what I need with only minor changes. -- http://mail.python.org/mailman/listinfo/python-list

Re: access to preallocated block of memory?

2005-12-16 Thread Greg Copeland
That certainly looks interesting. I'll check it out right now. Thanks! Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: access to preallocated block of memory?

2005-12-16 Thread Scott David Daniels
You might want to take a look at the "Blocks and Views" code I did, take a look at it and see if you can either use it directly or use it with any changes you feel like making. http://members.dsl-only.net/~daniels/Block.html -- -Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.or

Re: access to preallocated block of memory?

2005-12-15 Thread Greg Copeland
Dang it. That's what I suspected. Thanks! Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: access to preallocated block of memory?

2005-12-15 Thread Neil Hodgson
Greg Copeland: > I already have access to the block on memory...I > simply need information about existing python facilities which will > allow me to expose the block to python as a native type...from which I > can read byte for byte and optionally write to. As I originally said, > I have a point

Re: access to preallocated block of memory?

2005-12-15 Thread Greg Copeland
Based on the answers thus far, I suspect I'll being traveling this road shortly. Thanks, Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: access to preallocated block of memory?

2005-12-15 Thread Greg Copeland
I think you're getting caught in OS/platform semantics rather than a python solution. I already have access to the block on memory...I simply need information about existing python facilities which will allow me to expose the block to python as a native type...from which I can read byte for byte a

Re: access to preallocated block of memory?

2005-12-15 Thread Greg Copeland
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 pl

Re: access to preallocated block of memory?

2005-12-15 Thread sam
I had a simular situation when I was writing Python routines to access the the storage (SCSIPASSTHROUGH) layer provided by Windows XP. My solution was to develope an extention in C that allocated all storage buffers within the extension. Then I added access extensions to controll reading and writin

Re: access to preallocated block of memory?

2005-12-15 Thread Bengt Richter
On 14 Dec 2005 14:30:34 -0800, "Greg Copeland" <[EMAIL PROTECTED]> wrote: >I am running python on VxWorks. In the course of operation, a vxworks >tasks writes to a reserved area of memory. I need access to this chunk >of memory from within python. Initially I thought I could simply >access it a

Re: access to preallocated block of memory?

2005-12-15 Thread Grant Edwards
On 2005-12-15, Greg Copeland <[EMAIL PROTECTED]> wrote: > So array can not map a pre-existing chunk of memory? Providing access to a pre-existing chunk of memory is an OS feature. How does VxWorks provide that feature? > I did not port the mmap module because such semantics don't > exist on VxW

Re: access to preallocated block of memory?

2005-12-15 Thread Greg Copeland
So array can not map a pre-existing chunk of memory? I did not port the mmap module because such semantics don't exist on VxWorks. Based on comments thus far, it looks like mmap is my best bet here? Any other options? -- http://mail.python.org/mailman/listinfo/python-list

Re: access to preallocated block of memory?

2005-12-14 Thread Grant Edwards
On 2005-12-15, Do Re Mi chel La Si Do <[EMAIL PROTECTED]> wrote: vxworks tasks writes to a reserved area of memory. > > Is it compatible with the mmap module ? I've never written a VxWorks module, but it would only take a dozen or two lines of code to write a Linux driver that would impliment

Re: access to preallocated block of memory?

2005-12-14 Thread Do Re Mi chel La Si Do
>>> vxworks tasks writes to a reserved area of memory. Is it compatible with the mmap module ? -- http://mail.python.org/mailman/listinfo/python-list

access to preallocated block of memory?

2005-12-14 Thread Greg Copeland
I am running python on VxWorks. In the course of operation, a vxworks tasks writes to a reserved area of memory. I need access to this chunk of memory from within python. Initially I thought I could simply access it as a string but a string would reallocate and copy this chunk of memory; which i