Hello! Sorry for the late reply, but these days I don't read linux-pci regularly. Please Cc me on all patches for the pciutils. Anyway... I don't think this is the right approach. You poke things you shouldn't in user space, you also make some bold assumptions on endianity of the machine (you are using native C structs for data provided by the hardware). This belongs to the kernel. Have a nice fortnight -- Martin `MJ' Mareš <mj@xxxxxx> http://mj.ucw.cz/ United Computer Wizards, Prague, Czech Republic, Europe, Earth, Universe