Actually, while DEC ALWAYS starts the directory structure>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.
That "undocumented" "callback" mechanism is still presentEarly 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.
I can't remember if the USR is unblocked when a "specialRT-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.
Do you have any details that you are willing to share?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.