Ricky Ng-Adam <rnga...@lophilo.com> added the comment:

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

----------
nosy: +rngadam

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12556>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to