Lines Matching defs:mmap
2 # Module which supports allocation of memory from an mmap
12 import mmap
24 # Inheritable class which wraps an mmap, and from which blocks can be allocated
42 buf = mmap.mmap(-1, size, tagname=name)
45 # We have reopened a preexisting mmap.
48 raise FileExistsError('Cannot find name for new mmap')
59 # Reopen existing mmap
60 self.buffer = mmap.mmap(-1, self.size, tagname=self.name)
89 self.buffer = mmap.mmap(self.fd, self.size)
123 def __init__(self, size=mmap.PAGESIZE):
160 length = self._roundup(max(self._size, size), mmap.PAGESIZE)
165 util.info('allocating a new mmap of length %d', length)