From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.221.4 with SMTP id qa4mr13050838pbc.7.1329825258805; Tue, 21 Feb 2012 03:54:18 -0800 (PST) Path: wr5ni51141pbc.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Tue, 21 Feb 2012 11:54:12 GMT Organization: Aioe.org NNTP Server Message-ID: <4f44821e.38647079@nntp.aioe.org> References: <4f3ca414.21534066@nntp.aioe.org> <4f3dab02.35785786@nntp.aioe.org> <4f3d06f0.6951576@nntp.aioe.org> <4f3f4ae9.40953632@nntp.aioe.org> <4f41ae68$0$281$14726298@news.sunsite.dk> <4f44e048.2611144@nntp.aioe.org> <4f430fa8$0$294$14726298@news.sunsite.dk> <4f434899.23922519@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: CmgvwL3sOlojnxUjt8znzA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Tue, 21 Feb 2012 11:38:40 +0100, Johnny Billquist wrote: >> Right. I'm aware of that home block value. It was never used by any >> version of RT-11 that I know of. I've sometimes thought it might have >> been used by RTEM. I thought of using it myself when I implemented >> RUST/SJ sub-directories, but it wasn't worth it. > >Funny that you mention RTEM, since I seem to have come across a copy >that I now have running on my RSX systems. It is weird, and I have not >looked at all details. Also, a friend of mine have been doing most of >the fooling around. He did get it to boot RT-11 V5.7 after a few patches >to RT-11. Seems like RTEM got broken after V5.5 in the RT-11 side. > >I don't know exactly how it works, but it uses a disk split into two >parts. One is shared by all users, and holds all the normal binaries and >stuff you'd expect, while the other part is your private disk, which >holds all the rest of the stuff you do. But they are merged into one >disk in the view of RT-11. > >Also, it seems like the file protection is used, and all files on the >shared part of the disk are protected, which seems like a wise thing. :-) Yes, that must be what's happening there... >>> There are other still "undocumented" features in RT-11 such >>> as READ ONLY / WRITE PROTECTED files. >> >> They are directory entry flags which were defined in the final stages >> of RT-11. They were barely used. The Read-only flag is copied by >> .LOOKUP, but that's about it. I haven't bothered implementing it >> because the new flags are not backwards compatible with earlier >> versions of RT-11 (which is, historically, partly my fault). > >Am I understanding correct that the "P" after the file size is the >indication of the read-only status of the file? I seem to remember it >appearing to be so from something I did, but I'm not sure. "P" means the file is protected from deletion. It would be a logical place to implement read-only files but I'm pretty sure RTEM was implemented before the read-only flag. >>>> RT-11 magtape and cassette drivers are "special devices" with their >>>> own built-in ACPs. Directory operations on these devices may be >>>> handled via the USR or by using .SPFUN (special functions) to >>>> communicate directly with the driver. In this case the operation is >>>> analogous to the RSX QIO interface. Since tape devices can be >>>> particularly time consuming it is sometimes advantageous to handle >>>> their directory operations without blocking the USR. >>>> >>>> >>> I can't remember if the USR is unblocked when a "special >>> device" requests the USR to hand off what is normally a >>> request handled by the USR. I seem to remember that the >>> USR is invoked initially when a file is opened on a magtape, >>> but I can't remember what happens when the device driver >>> takes over to handle the open request. Do you know if >>> the USR in RT-11 is unblocked at that point? Often, >>> the program may not even know that the device for the >>> file open request is a "special device" and simply call the >>> USR with the usual EMT request for the type of open >>> (.LookUp, .Enter) which is required. >> >> The USR waits for any .LOOKUP/.ENTER to complete. > >So, if I understand correctly, any program that don't understand that an >access to a magtape can be done with .SPFUN, and instead opens it with >USR will block until the magtape file have been opened, which can take a >serious while? Yes In operational terms this is less of a problem with a single-user system, where you can plan your day, than it is with in a multi-user environment where you don't know what other people are going to do at any given time. The first system I did was a host/satellite RT-11 implementation where each satellite PDP-11 saw all the host devices as local. It was in that environent that I used .SPFUN to access magtape so that directory access wasn't blocked. We had up to ten or more satellites active, some of those with multiple users, and the USR was never a problem. I used a software cache in that system as well which helped in particular with directory access. >Can a program that is waiting on USR be interrupted by something >AST-like? What happens to the USR call meanwhile? Yes AST's can interrupt the USR. The USR is just an extension of the program's mainline (you can't call it from an AST), so it remains dormant until the AST exits. ASTs can also interrupt system calls, unless they've switched to system state. Ian