Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!apple!bbn.com!rmitchel From: rmitchel@bbn.com (Rob Mitchell) Newsgroups: comp.sys.mac.programmer Subject: Re: Can I/O Completion routine call 'GetRequest'?? Message-ID: <64025@bbn.BBN.COM> Date: 3 May 91 19:48:09 GMT References: <0B010004.nn2ddd@outpost.UUCP> <1991Apr21.224503.12761@engin.umich.edu> Sender: news@bbn.com Distribution: na Lines: 32 davids@mondo.engin.umich.edu (David Snearline) writes: >In article <0B010004.nn2ddd@outpost.UUCP> peirce@outpost.UUCP writes: >> >>In article <63618@bbn.BBN.COM>, rmitchel@bbn.com (Rob Mitchell) writes: >>> [my old stuff] >> [other old stuff] >Is it possible to re-use the same parameter block from your completion >routine? ie. Has IODone already called Dequeue on your parameter block >by the time it calls your completion routine? I've tried to use the same param block from an I/O completion routine, but it bombs out with SCSI dismount errors??? I know it sounds strange, but that's what MacsBug "ip" command in telling me. What I've done is when IO completion is called, I set a flag in PB. Later, during NULL events, I scan message queue for this flag and process a request or send a response (depends on AppleTalk code) to finish off whatever the PB was originally doing. Rob Mitchell Advanced Simulation Division Unix & Macintosh Engineer BBN Systems & Technologies Internet: rmitchel@vax.bbn.com 33 Moulton Street MS: 8/C Primary Dwelling: 617-873-4041 Cambridge, MA 02138 Secondary Dwelling: 617-873-4071 FAX: 617-873-4315 These opinions are mine and mine only. They do not represent BBNs' opinions.