home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.internals
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!darwin.sura.net!uvaarpa!murdoch!uvacs.cs.Virginia.EDU!asw2s
- From: asw2s@uvacs.cs.Virginia.EDU (Alex S. Waterman)
- Subject: peek()ing a location
- Message-ID: <1992Nov11.071911.25449@murdoch.acc.Virginia.EDU>
- Originator: asw2s@phil.cs.Virginia.EDU
- Keywords: peek, device driver
- Sender: usenet@murdoch.acc.Virginia.EDU
- Organization: University of Virginia Computer Science Department
- Distribution: usa
- Date: Wed, 11 Nov 1992 07:19:11 GMT
- Lines: 19
-
- All,
- I have implemented a device driver in SunOS 4.1.1 that communicates
- with a 68040 on the VME backplane. In some circumstances I would like to
- use a _guarded_ access mechanism to check the memory directly on the board.
- Guarded in the sense that if I reference it it won't dump the kernel. The
- 68040 is occasionally locking the VME bus and I would like to sense this
- without the kernel dumping.
- (the memory has been mapped in, etc. I can access it most of the time.)
-
- The peek() routine is perfect for this but the Sun manual says to only
- use it in the probe() routine. I would like to use it in my strategy()
- routine. Is there any known reason why I can't? No reason is given.
- If I can't use peek(), is there another way to accomplish this?
-
-
- Thanks for your help.
-
- - Alex Waterman
- Alex@virginia.edu
-