ctypes - random access to address space

janislaw wicijowski at gmail.com
Tue Apr 14 03:54:01 EDT 2009


Hi,

I am currently doing a project in which I interface to a PCI card. To
ease the prototyping, I call the API functions, which map the address
space of the card to a process memory.

I acquire the location in the process memory mapped to an address
space using card API, resulting in a c structure, containing an
integer field, being a location.

The question is, if I can create a ctypes pointer to this location. Is
that what i.e. POINTER(uint32).from_address() does?

Jan Wicijowski



More information about the Python-list mailing list