MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / map_memory

Method map_memory

Python-Bridge/Python-Bridge.py:250–264  ·  view source on GitHub ↗
(self, src_pid, dst_pid, virtual_address, size, map_to_address_space,
                       protect, cache_type, user_requested_address)

Source from the content-addressed store, hash-verified

248 ("Mdl", c_uint64)]
249
250 def map_memory(self, src_pid, dst_pid, virtual_address, size, map_to_address_space,
251 protect, cache_type, user_requested_address):
252 mapping_info = self.MappingInfo()
253 status = self.__kb.KbMapMemory(
254 byref(mapping_info),
255 c_uint64(src_pid),
256 c_uint64(dst_pid),
257 c_uint64(virtual_address),
258 c_uint(size),
259 c_uint(map_to_address_space),
260 c_uint(protect),
261 c_uint(cache_type),
262 c_uint64(user_requested_address)
263 )
264 return status, mapping_info
265
266 def unmap_memory(self, mapping_info):
267 return self.__kb.KbUnmapMemory(byref(mapping_info))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected