Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!bacchus.pa.dec.com!deccrl!decvax.dec.com!cspi!segedy From: segedy@cspi.UUCP (Cathy Segedy) Newsgroups: comp.sys.hp Subject: iomap functionality Keywords: iomap, driver?, global variable, device with memory Message-ID: <789@cspi.UUCP> Date: 28 Sep 90 21:52:02 GMT Organization: CSP Inc., Billerica, MA 01821 Lines: 19 Hello! I have a challenging question for everyone. (If its not a challenge, then you are the one who has the answer for me!) I have a device on an HP-9000, 300 series, VME bus. It has memory on it. Following the rules of the game, it has a seperate device in /dev to get at the memory. This is a device with major number 10. So, I open the device, and I do an ioctl(fd,IOMAPMAP,&addr); If addr is 0, I get some memory which the iomap function inside the driver has chosen to give me. If addr is an address outside of my program, I get some memory back. However, if addr is the address of either a fortran common block or a C global array, ie, inside my data space, I get a message about there not being enough space to do the mapping. Can anyone help me out? thanks! cathy segedy, CSPI decvax!cspi!segedy apollo!cspi!segedy