From: "Jerome H. Fine" <everyone@nospam.com>
Subject: Re: PDP11 Values from MFPT
Date: Mon, 20 Feb 2012 22:29:03 -0500 [thread overview]
Message-ID: <4f430fa8$0$294$14726298@news.sunsite.dk> (raw)
In-Reply-To: <4f44e048.2611144@nntp.aioe.org>
[-- Attachment #1: Type: text/plain, Size: 7028 bytes --]
>paramucho wrote:
>>On Sun, 19 Feb 2012 21:22:03 -0500, "Jerome H. Fine wrote:
>
>>>Johnny Billquist wrote:
>>>
>>>
>>>$OPEN, $CLOSE, and so on, are in RMS. RMS in turn do $QIO calls to
>>>perform the neccesary operations on the device. $QIO is the system
>>>call. $OPEN is an RMS function. RMS can, and will, definitely call the
>>>system to perform operations. But you can also circumvent RMS if you
>>>want to, by calling the device directly on your own.
>>>
>>>
>>Under RT-11, many of the distributed SAV programs
>>circumvent the USR and perform disk I/O directly,
>>especially when READ ONLY access to the disk
>>is sufficient.
>>
>>DIR, PIP and BINCOM are examples. They read
>>the directories to obtain access to the files on the
>>disk, in particular when a "wild card" specification
>>is used for the files name. I would imagine that this
>>would allow a system job access to the directory
>>on the disk even if a lower priority job was using the
>>USR. I have never tested to determine if this is true,
>>but it is very likely.
>>
>>Sometimes, both direct access and the USR are required,
>>in particular when some files are read and others are
>>written. If examples of this type of activity are of interest,
>>please ask.
>>
>RT-11 does not provide a directory scan system call, so utilities must
>access the directory directly to scan them. RT-11 guarantees that a
>directory structure begins at block 6 of a file structured device.
>
>
Actually, while DEC ALWAYS starts the directory structure
at block 6 of a file structured device, that is not required since
in block 1, there is a value which holds the starting block number.
I stress that DEC has never used a different value and that ALL
present code ignores the starting block number specified within
block 1, but it is a possibility.
In addition, since the DEC development team was effectively
terminated (disbanded I think around 1992), there no longer
seems to be any probability that there will be any new major
changes within RT-11. The lack of interest by commercial
users is probably even more of a reason that RT-11 will
not be enhanced in any major way - even though it would
be entirely possible to continue running important applications
under the SimH and E11 emulators, in particular under E11
at speeds in excess of 100 times a PDP-11/93.
>Early versions of RT-11 supported a mechanism by which the USR would
>"callback" a program at critical points with a pointer to the
>directory entry being processed. Most if not all this utility code has
>been replaced by later system calls which read and write individual
>directory entries without a callback. However, except for disk
>initialization etc, no RT-11 utility directly modifies a directory
>with a .READ/.WRITE sequence.
>
>
That "undocumented" "callback" mechanism is still present
in RT-11, just not used any more by the latest versions of
DEC SAV files within RT-11. That code has been
replaced by code which uses the additional file EMT
requests.
So it actually is still possible and still "undocumented".
I suspect that versions of PIP which used the "callback"
mechanism will still function correctly if the RT-11 version
number check is circumvented.
There are other still "undocumented" features in RT-11 such
as READ ONLY / WRITE PROTECTED files. PIP does
not support this feature, but if a user cleverly uses SIPP to
manually set the bit in the status of a file label for a file
structured device, then that will be reflected in the CSWs
when a file .LookUp is performed and RT-11 will prohibit
a program from executing a .Write request to the file. It
would be fun to add the code to DIR and PIP to support
this feature, especially since the Resident Monitor and the
USR already support the concept.
>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 "special device" interface and RT-11 directory structure can be
>used to simulate other kinds of devices. I use these two features to
>implement a transparent remote file system which permits PDP-11 users
>access remote directories as if they were local.
>
Do you have any details that you are willing to share?
I know that DO(X).SYS which John Wilson wrote
to execute under E11 may do something similar with
DOS directories, but I have never used DO(X).SYS
and I have not looked at the code.
Under RT-11, I have looked at the technical aspects
of an LN(X).SYS device handler (Logical Name Device
List Pseudo Device Driver) which supports the same
functions as the PATH on DOS or the LNL on VMS.
Note that in the latter case, many levels of directories
can be used under VMS while for RT-11, only a single
device name can be used for each entry. Thus when an
RT-11 user wishes to have a .LookUp performed (and
ONLY a .LookUp EMT request is supported) on the
file LN2:FOOBAR.TYP, the .LookUp EMT request
code in the USR knows to search the Logical Name
Device List in the specified order. For example, use:
LN2: => LD2:, LD1:, DU3:
until the specified file with that device name is found.
When I wrote the code for the first preliminary version,
I used the RT-11 ASSIGN command to:
ASSIGN LD2: L2A:
ASSIGN LD1: L2B:
ASSIGN DU3: L2C:
and then searched the four names: L2A, L2B, L2C and L2D
to locate the file name. After I realized that this would use
up too many entries in the ASSIGNed table, I enhanced the
code of the LN(X).SYS device driver to hold a "Logical Name
Device List" within the device driver file in the same manner
as LD(X).SYS so that the ASSIGNed table would not be
required.
Is the code that you use to access remote directories supported
by both RT-11 and RUST or just RUST? Have you modified
an existing device driver or written a new one? The name
RM(X).SYS would be a suitable name for the device driver,
but I expect that you did not use those two characters.
Jerome Fine
[-- Attachment #2: Type: text/html, Size: 8478 bytes --]
next prev parent reply other threads:[~2012-02-21 3:29 UTC|newest]
Thread overview: 222+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-15 14:37 PDP11 Values from MFPT Jerome H. Fine
2012-01-18 6:03 ` paramucho
2012-01-18 11:28 ` Johnny Billquist
2012-01-18 13:05 ` glen herrmannsfeldt
2012-01-18 13:26 ` Johnny Billquist
2012-01-26 3:24 ` Jerome H. Fine
2012-01-26 13:38 ` Johnny Billquist
2012-01-29 1:32 ` Jerome H. Fine
2012-01-29 1:43 ` Johnny Billquist
2012-01-26 3:23 ` Jerome H. Fine
2012-01-18 16:02 ` paramucho
2012-01-18 18:12 ` Johnny Billquist
2012-01-19 14:30 ` paramucho
2012-01-19 16:42 ` Johnny Billquist
2012-01-19 20:32 ` glen herrmannsfeldt
2012-01-20 13:32 ` paramucho
2012-01-20 13:29 ` paramucho
2012-01-20 16:48 ` Johnny Billquist
2012-01-21 12:25 ` paramucho
2012-01-21 20:15 ` Johnny Billquist
2012-01-26 3:25 ` Jerome H. Fine
2012-01-26 6:09 ` paramucho
2012-01-26 6:30 ` paramucho
2012-01-26 13:50 ` Johnny Billquist
2012-01-29 1:52 ` Jerome H. Fine
2012-01-29 2:08 ` Johnny Billquist
2012-01-26 13:48 ` Johnny Billquist
2012-01-26 13:46 ` Johnny Billquist
2012-01-29 1:35 ` Jerome H. Fine
2012-01-18 12:41 ` glen herrmannsfeldt
2012-01-18 13:18 ` Johnny Billquist
2012-01-18 14:28 ` glen herrmannsfeldt
2012-01-18 15:14 ` Johnny Billquist
2012-01-18 21:54 ` glen herrmannsfeldt
2012-01-18 22:32 ` Al Kossow
2012-01-19 0:22 ` Johnny Billquist
2012-01-19 1:30 ` glen herrmannsfeldt
2012-01-19 14:32 ` Bob Koehler
2012-01-19 16:45 ` Johnny Billquist
2012-01-20 17:55 ` Bob Koehler
2012-01-20 18:38 ` Bill Gunshannon
2012-01-18 16:25 ` paramucho
2012-01-18 18:00 ` Johnny Billquist
2012-01-19 14:25 ` paramucho
2012-01-19 16:50 ` Johnny Billquist
2012-01-20 13:32 ` paramucho
2012-01-20 16:54 ` Johnny Billquist
2012-01-21 13:16 ` paramucho
2012-01-21 13:58 ` Bob Eager
2012-01-21 20:02 ` Johnny Billquist
2012-01-22 11:59 ` Johnny Billquist
2012-01-22 14:03 ` paramucho
2012-01-22 16:15 ` Johnny Billquist
2012-01-23 4:14 ` paramucho
2012-01-18 13:20 ` Bob Eager
2012-01-19 14:29 ` Bob Koehler
2012-01-21 12:44 ` Tim Shoppa
2012-01-21 13:50 ` paramucho
2012-01-22 16:56 ` Tim Shoppa
2012-01-22 18:11 ` glen herrmannsfeldt
2012-01-23 3:52 ` paramucho
2012-01-21 14:25 ` glen herrmannsfeldt
2012-01-21 16:46 ` Bob Eager
2012-01-25 22:12 ` Tim Shoppa
2012-01-26 3:22 ` Jerome H. Fine
2012-01-26 13:46 ` paramucho
2012-01-29 1:34 ` Jerome H. Fine
2012-01-29 15:46 ` paramucho
2012-02-01 3:53 ` Jerome H. Fine
2012-02-01 11:22 ` paramucho
2012-02-01 11:48 ` Johnny Billquist
2012-02-01 13:48 ` paramucho
2012-02-01 14:43 ` stan
2012-02-01 16:37 ` paramucho
2012-02-01 18:05 ` stan
2012-02-02 2:24 ` Jerome H. Fine
2012-02-02 0:14 ` Johnny Billquist
2012-02-02 2:25 ` Jerome H. Fine
2012-02-02 9:29 ` Johnny Billquist
2012-02-02 18:52 ` glen herrmannsfeldt
2012-02-03 0:12 ` Johnny Billquist
2012-02-03 4:07 ` Jerome H. Fine
2012-02-03 14:15 ` Johnny Billquist
2012-02-03 15:00 ` paramucho
2012-02-02 13:31 ` paramucho
2012-02-02 19:07 ` glen herrmannsfeldt
2012-02-03 0:16 ` Johnny Billquist
2012-02-03 4:23 ` glen herrmannsfeldt
2012-02-03 12:01 ` Johnny Billquist
2012-02-03 15:36 ` Joe Oswald
2012-02-07 10:46 ` Johnny Billquist
2012-02-03 4:29 ` Jerome H. Fine
2012-02-03 12:50 ` Bill Gunshannon
2012-02-04 8:42 ` Charles Richmond
2012-02-04 13:38 ` paramucho
2012-02-04 16:03 ` Bill Gunshannon
2012-02-04 16:39 ` paramucho
2012-02-03 10:48 ` paramucho
2012-02-03 11:24 ` Johnny Billquist
2012-02-04 17:06 ` paramucho
2012-02-04 18:22 ` paramucho
2012-02-04 18:55 ` Johnny Billquist
2012-02-04 19:13 ` Bill Gunshannon
2012-02-05 13:28 ` Johnny Billquist
2012-02-05 18:15 ` glen herrmannsfeldt
2012-02-04 18:51 ` Johnny Billquist
2012-02-04 23:09 ` glen herrmannsfeldt
2012-02-05 14:01 ` paramucho
2012-02-05 15:31 ` Johnny Billquist
2012-02-06 13:50 ` paramucho
2012-02-06 14:45 ` Johnny Billquist
2012-02-06 14:58 ` paramucho
2012-02-06 16:25 ` Johnny Billquist
2012-02-05 14:27 ` Johnny Billquist
2012-02-05 13:57 ` paramucho
2012-02-05 15:44 ` Johnny Billquist
2012-02-06 13:51 ` paramucho
2012-02-06 14:56 ` Johnny Billquist
2012-02-06 16:40 ` Johnny Billquist
2012-02-07 14:50 ` paramucho
2012-02-07 16:20 ` Johnny Billquist
2012-02-08 13:34 ` paramucho
2012-02-08 16:03 ` Johnny Billquist
2012-02-08 16:58 ` paramucho
2012-02-08 22:29 ` Johnny Billquist
2012-02-10 13:12 ` paramucho
2012-02-10 19:20 ` glen herrmannsfeldt
2012-02-11 13:12 ` paramucho
2012-02-11 20:06 ` glen herrmannsfeldt
2012-02-11 20:23 ` Johnny Billquist
2012-02-10 19:29 ` Johnny Billquist
2012-02-11 13:15 ` paramucho
2012-02-11 21:09 ` Johnny Billquist
2012-02-12 17:23 ` paramucho
2012-02-12 18:35 ` paramucho
2012-02-13 17:30 ` paramucho
2012-02-14 13:14 ` Johnny Billquist
2012-02-14 16:20 ` paramucho
2012-02-14 17:30 ` Johnny Billquist
2012-02-13 23:18 ` Johnny Billquist
2012-02-14 16:20 ` paramucho
2012-02-14 17:47 ` Johnny Billquist
2012-02-14 18:17 ` paramucho
2012-02-14 19:54 ` Johnny Billquist
2012-02-15 12:58 ` paramucho
2012-02-15 17:12 ` Johnny Billquist
2012-02-16 13:54 ` paramucho
2012-02-16 20:15 ` Johnny Billquist
2012-02-17 12:41 ` paramucho
2012-02-17 17:13 ` Johnny Billquist
2012-02-18 11:24 ` Johnny Billquist
2012-02-18 14:28 ` paramucho
2012-02-18 20:07 ` Johnny Billquist
2012-02-18 11:55 ` paramucho
2012-02-18 20:58 ` Johnny Billquist
2012-02-20 2:29 ` Jerome H. Fine
2012-02-20 5:54 ` paramucho
2012-02-20 17:14 ` Jerome H. Fine
2012-02-20 18:05 ` Johnny Billquist
2012-02-21 6:16 ` paramucho
2012-02-21 17:38 ` Jerome H. Fine
2012-02-21 19:31 ` Johnny Billquist
2012-02-20 5:53 ` paramucho
2012-02-20 10:28 ` Johnny Billquist
2012-02-21 3:33 ` Jerome H. Fine
2012-02-21 6:17 ` paramucho
2012-02-21 10:23 ` Johnny Billquist
2012-02-21 11:37 ` paramucho
2012-02-21 14:16 ` Johnny Billquist
2012-02-21 16:42 ` paramucho
2012-02-21 19:43 ` Johnny Billquist
2012-02-22 12:21 ` paramucho
2012-02-22 14:12 ` paramucho
2012-02-22 15:26 ` Johnny Billquist
2012-02-22 14:33 ` paramucho
2012-02-22 15:53 ` Johnny Billquist
2012-02-22 16:48 ` paramucho
2012-02-22 21:17 ` Johnny Billquist
2012-02-23 12:42 ` paramucho
2012-02-23 13:51 ` paramucho
2012-02-23 15:17 ` Johnny Billquist
2012-02-20 2:22 ` Jerome H. Fine
2012-02-20 6:07 ` paramucho
2012-02-21 3:29 ` Jerome H. Fine [this message]
2012-02-21 8:06 ` paramucho
2012-02-21 10:38 ` Johnny Billquist
2012-02-21 11:54 ` paramucho
2012-02-21 14:20 ` Johnny Billquist
2012-02-21 15:13 ` paramucho
2012-02-21 15:20 ` Johnny Billquist
2012-02-22 2:51 ` Jerome H. Fine
2012-02-22 6:37 ` paramucho
2012-01-18 11:20 ` Johnny Billquist
2012-01-26 3:21 ` Jerome H. Fine
2012-01-26 14:12 ` Johnny Billquist
2012-01-26 15:26 ` paramucho
2012-01-29 1:41 ` Jerome H. Fine
2012-01-29 2:04 ` Johnny Billquist
2012-01-29 2:31 ` Johnny Billquist
2012-01-29 1:39 ` Jerome H. Fine
2012-01-29 1:45 ` Johnny Billquist
2012-01-30 2:21 ` Bob Supnik
2012-01-31 7:14 ` paramucho
2012-01-31 9:42 ` Johnny Billquist
2012-01-31 14:24 ` Bill Gunshannon
2012-01-31 20:17 ` Johnny Billquist
2012-01-31 21:39 ` Bill Gunshannon
2012-01-31 23:43 ` glen herrmannsfeldt
2012-02-01 3:56 ` Jerome H. Fine
2012-02-01 11:53 ` Johnny Billquist
2012-02-01 13:48 ` paramucho
2012-02-02 0:20 ` Johnny Billquist
2012-02-02 2:22 ` Jerome H. Fine
2012-02-01 12:14 ` Johnny Billquist
2012-02-01 16:27 ` glen herrmannsfeldt
2012-02-01 5:28 ` Charles Richmond
2012-02-01 11:54 ` Johnny Billquist
2012-02-01 3:55 ` Jerome H. Fine
2012-02-01 11:22 ` paramucho
2012-02-01 12:03 ` Johnny Billquist
2012-02-01 3:54 ` Jerome H. Fine
2012-02-01 12:09 ` Johnny Billquist
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox