This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rngadam
Recipients neologix, rngadam, rosslagerwall, schmir, superbobry, vstinner
Date 2012-07-27.10:15:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343384111.77.0.382222281669.issue12556@psf.upfronthosting.co.za>
In-reply-to
Content
I find this resolution to rejected somewhat questionable. It has been pointed that the mmap behavior in Python differs from the behavior of the underlying mmap as defined by the system documentation. 

I think the incorrect assumption here is that mmap is used to only map real files. In the case of virtual files such those found in sysfs and debugfs in Linux, mmap is a general operation that lets the underlying driver arbitrarily map to other memory regions.

As an example, we are developing a new hardware platform. To maximize performance, instead of creating a file-based interface to the Linux driver, we are experimenting with mmap'ing the hardware memory address to the userspace by implementing the mmap operation in our Linux kernel module. 

This mmap operation works in C and in Node.JS, but not in Python where it can't get past the underlying debugfs (or sysfs) file having a size of 0...
History
Date User Action Args
2012-07-27 10:15:11rngadamsetrecipients: + rngadam, vstinner, schmir, neologix, rosslagerwall, superbobry
2012-07-27 10:15:11rngadamsetmessageid: <1343384111.77.0.382222281669.issue12556@psf.upfronthosting.co.za>
2012-07-27 10:15:11rngadamlinkissue12556 messages
2012-07-27 10:15:10rngadamcreate