[an error occurred while processing this directive]
HP OpenVMS Systems Documentation |
HP OpenVMS System Services Reference Manual
On Alpha and I64, this item code can be used with the PATHNAME parameter. If the PATHNAME parameter is omitted, the summation of the operation counts for all paths in a multipath device is returned (which was the behavior prior to the introduction of the PATHNAME parameter). If the PATHNAME parameter is specified, only the operation count for that path is returned. DVI$_OWNUICReturns the user identification code (UIC) of the owner of the device as a standard 4-byte UIC.DVI$_PATH_AVAILABLEOn Alpha and I64, returns an unsigned longword, interpreted as Boolean. A value of 1 indicates the specified path is available.This item code is usually used with the PATHNAME parameter. If the PATHNAME parameter is omitted, information about the current path of the multipath device is returned. DVI$_PATH_NOT_RESPONDINGOn Alpha and I64, returns an unsigned longword, interpreted as Boolean. A value of 1 indicates the specified path is marked as not responding.This item code is usually used with the PATHNAME parameter. If the PATHNAME parameter is omitted, information about the current path of the multipath device is returned. DVI$_PATH_POLL_ENABLEDOn Alpha and I64, returns an unsigned longword, interpreted as Boolean. A value of 1 indicates that the specified path is enabled for multipath polling.This item code is usually used with the PATHNAME parameter. If the PATHNAME parameter is omitted, information about the current path of the multipath device is returned. DVI$_PATH_SWITCH_FROM_TIMEOn Alpha and I64, returns the time from which this path was switched, either manually or automatically. Because the returned time is in the standard 64-bit absolute time format, the buffer length field in the item descriptor should specify 8 (bytes).This item code is usually used with the PATHNAME parameter. If the PATHNAME parameter is omitted, information about the current path of the multipath device is returned. DVI$_PATH_SWITCH_TO_TIMEOn Alpha and I64, returns the time to which this path was switched, either manually or automatically. Because the returned time is in the standard 64-bit absolute time format, the buffer length field in the item descriptor should specify 8 (bytes).This item code is usually used with the PATHNAME parameter. If the PATHNAME parameter is omitted, information about the current path of the multipath device is returned. DVI$_PATH_USER_DISABLEDOn Alpha and I64, returns an unsigned longword, interpreted as Boolean. A value of 1 indicates the specified path has been disabled using the $SET DEVICE /PATH /NOENABLE command.This item code is usually used with the PATHNAME parameter. If the PATHNAME parameter is omitted, information about the current path of the multipath device is returned. DVI$_PIDReturns the process identification (PID) of the owner of the device as an unsigned integer longword.DVI$_PREFERRED_CPUThe return argument is a 32-bit CPU bit mask with a bit set indicating the preferred CPU. A return argument containing a bit mask of zero indicates that no preferred CPU exists, either because Fast Path is disabled or the device is not a Fast Path capable device. The return argument serves as a CPU bit mask input argument to the $PROCESS_AFFINITY system service. The argument can be used to assign an application process to the optimal preferred CPU.DVI$_PROT_SUBSYSTEM_ENABLEDOn Alpha and I64, returns an unsigned longword, which is interpreted as Boolean. A value of 1 indicates the volume is mounted with protected subsystems enabled.DVI$_RECSIZReturns the blocked record size as an unsigned integer longword.DVI$_REFCNTReturns the number of channels assigned to the device as an unsigned integer longword.DVI$_REMOTE_DEVICEReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device is a remote device; a value of 0 indicates that it is not a remote device. A remote device is a device that is not directly connected to the local node, but instead is visible through the OpenVMS Cluster system.DVI$_ROOTDEVNAMReturns the device name of the root volume in the volume set as a 64-byte, zero-filled string. This item code is applicable only to disks.DVI$_SCSI_DEVICE_FIRMWARE_REVOn Alpha and I64, returns as a four-character string the firmware revision of a SCSI disk or SCSI tape. This item code is valid only for SCSI disks and SCSI tapes; a null string is returned for any other device.DVI$_SECTORSReturns the number of sectors per track as an unsigned integer longword. This item code is applicable only to disks.DVI$_SERIALNUMReturns the serial number of the volume as an unsigned integer longword. This item code is applicable only to disks.DVI$_SERVED_DEVICEReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device is a served device; a value of 0 indicates that it is not a served device. A served device is one whose local node makes it available to other nodes in the OpenVMS Cluster system.DVI$_SHDW_CATCHUP_COPYINGReturns a longword, which is interpreted as Boolean. The value 1 indicates that the device is the target of a full copy operation.DVI$_SHDW_COPIER_NODEOn Alpha and I64, returns the name of the node that is actively performing either the copy or the merge operation, as a string.DVI$_SHDW_DEVICE_COUNTOn Alpha and I64, returns the total number of devices in the virtual unit, including devices being added as copy targets, as a longword.DVI$_SHDW_GENERATIONOn Alpha and I64, returns the current, internal revision number of the virtual unit, as a quadword.DVI$_SHDW_MASTERReturns a longword, which is interpreted as Boolean. The value 1 indicates that the device is a virtual unit named DSAnnnn:.DVI$_SHDW_MASTER_MBROn Alpha and I64, returns the name of the master member unit that is used for merge and copy repair operations and for shadow set recovery operations, as a string.DVI$_SHDW_MASTER_NAMEWhen the specified device is a shadow set member, $GETDVI returns the device name of the virtual unit (DSAnnnn:) that represents the shadow set of which the specified device is a member. $GETDVI returns a null string if the specified device is not a member or is itself a virtual unit (DSAnnnn:).
Because the shadow set virtual unit name can include up to 64 characters, the buffer length field of the item descriptor should specify 64 (bytes). DVI$_SHDW_MBR_COPY_DONEOn Alpha and I64, returns the percentage of the copy operation that is complete on the current member unit, as a longword.DVI$_SHDW_MBR_COUNTOn Alpha and I64, returns the number of full source members in the virtual unit, as a longword. Devices added as copy targets are not full source members.DVI$_SHDW_MBR_MERGE_DONEOn Alpha and I64, returns the percentage of the merge operation that has been completed on the member, as a longword.DVI$_SHDW_MBR_READ_COSTOn Alpha and I64, returns the current value set for the member unit, as a longword. This value can be modified to use a customer-specified value.DVI$_SHDW_MEMBERReturns a longword, which is interpreted as Boolean. The value 1 indicates that the device is a shadow set member.DVI$_SHDW_MERGE_COPYINGOn Alpha and I64, returns a longword, which is interpreted as Boolean. The value 1 indicates that the device is a merge member of the shadow set.DVI$_SHDW_MINIMERGE_ENABLEOn Alpha and I64, returns a longword, which is interpreted as Boolean. The value 1 indicates that the virtual unit will undergo a mini-merge and not a full merge, if a system in the cluster crashes.DVI$_SHDW_NEXT_MBR_NAMEReturns the device name of the next member in the shadow set. If you specify a virtual unit with the chan or devnam argument, DVI$_SHDW_NEXT_MBR_NAME returns the device name of a member of a shadow set. If you specify the name of a shadow set member unit with the chan or devnam argument, DVI$_SHDW_NEXT_MBR_NAME returns the name of the next member unit or a null string if there are no more members.To determine all the members of a shadow set, first specify the virtual unit (DSAnnnn:) to $GETDVI. Then, on subsequent calls, specify the member name returned by the previous $GETDVI call until it returns a null member name. When the shadow set members have a nonzero allocation class, the device name returned by $GETDVI contains the allocation class; the name has the form $allocation-class$device. For example, if a shadow set has an allocation class of 255 and the device name is DUA42, $GETDVI returns the string $255$DUA42.
Because a device name can include up to 64 characters, the buffer length field of the item descriptor should specify 64 (bytes). DVI$_SHDW_READ_SOURCEOn Alpha and I64, returns the name of the member unit that is used for reads, at this point in time, as a longword. DVI$_SHDW_READ_SOURCE uses the unit that has the lowest value of the sum of its queue length and read cost for reads. This is a dynamic value.DVI$_SHDW_TIMEOUTOn Alpha and I64, returns the customer-specified timeout value set for the device, as a long word.If you do not set a value using the SETSHOWSHADOW utility, the SYSGEN parameter SHADOW_MBR_TWO is used for member units and MVTIMEOUT is used for virtual units. DVI$_STSReturns the device unit status as a 4-byte bit vector. Each bit in the vector, when set, corresponds to a symbolic name that is defined by the $UCBDEF macro. The following table describes each name:
DVI$_TOTAL_PATH_COUNTOn Alpha and I64, returns as an unsigned longword the number of paths for a multipath-capable device.DVI$_TRACKSReturns the number of tracks per cylinder as an unsigned integer longword. This item code is applicable only to disks.DVI$_TRANSCNTReturns the transaction count for the volume as an unsigned integer longword.DVI$_QLENOn Alpha and I64, returns the queue length for the device, as a long word. Note that this value is the number of I/O requests already in the driver and not the depth of the I/O pending queue.DVI$_TT_ACCPORNAMReturns the name of the remote access port associated with a channel number or with a physical or virtual terminal device number. If you specify a device that is not a remote terminal or a remote type that does not support this feature, $GETDVI returns a null string. The $GETDVI service returns the access port name as a 64-byte, zero-filled string.The $GETDVI service returns the name in the format of the remote system. If the remote system is a LAT terminal server, $GETDVI returns the name as server_name/port_name. The names are separated by the slash (/) character. If the remote system is an X.29 terminal, the name is returned as network.remote_DTE. When writing applications, you should use the string returned by DVI$_ACCPORNAM, instead of the physical device name, to identify remote terminals. DVI$_TT_CHARSETReturns, as a 4-byte bit vector, the character sets supported by the terminal. Each bit in the vector, when set, corresponds to the name of a coded character set. The $TTCDEF macro defines the following coded character sets:
DVI$_TT_CS_HANGULReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device supports the DEC Korean coded character set; a value of 0 indicates that the device does not support the DEC Korean coded character set.DVI$_TT_CS_HANYUReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device supports the DEC Hanyu coded character set; a value of 0 indicates that the device does not support the DEC Hanyu coded character set.DVI$_TT_CS_HANZIReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device supports the DEC Hanzi coded character set; a value of 0 indicates that the device does not support the DEC Hanzi coded character set.DVI$_TT_CS_KANAReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device supports the DEC Kana coded character set; a value of 0 indicates that the device does not support the DEC Kana coded character set.DVI$_TT_CS_KANJIReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device supports the DEC Kanji coded character set; a value of 0 indicates that the device does not support the DEC Kanji coded character set.DVI$_TT_CS_THAIReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device supports the DEC Thai coded character set; a value of 0 indicates that the device does not support the DEC Thai coded character set.DVI$_TT_PHYDEVNAMReturns a string containing the physical device name of a terminal. If the caller specifies a disconnected virtual terminal or a device that is not a terminal, $GETDVI returns a null string. $GETDVI returns the physical device name as a 64-byte, zero-filled string.DVI$_UNITReturns the unit number as an unsigned longword.DVI$_VOLCHAROn Alpha and I64 systems, returns a 128-bit string (16 bytes) that represents the volume characteristics or capabilities of the mounted device. If a bit is set, the volume is capable of performing the function.DVI$_VOLCOUNTReturns the number of volumes in the volume set as an unsigned longword. This item code is applicable only to disks.DVI$_VOLNAMReturns the volume name as a 12-byte, zero-filled string.DVI$_VOLNUMBERReturns the volume number of this volume in the volume set as an unsigned integer longword. This item code is applicable only to disks.DVI$_VOLSETMEMReturns a longword, which is interpreted as Boolean. A value of 1 indicates that the device is part of a volume set; a value of 0 indicates that it is not. This item code is applicable only to disks.DVI$_VOLSIZEOn Alpha and I64, returns the volume's current logical volume size.DVI$_VOLUME_EXTEND_QUANTITYOn Alpha and I64, returns as an unsigned longword the number of blocks to be used as the default extension size for all files on the volume.DVI$_VOLUME_MOUNT_GROUPOn Alpha and I64, returns an unsigned longword, interpreted as Boolean. A value of 1 indicates the volume is mounted /GROUP.DVI$_VOLUME_MOUNT_SYSOn Alpha and I64, returns an unsigned longword, interpreted as Boolean. A value of 1 indicates the volume is mounted /SYSTEM.DVI$_VPROTReturns the volume protection mask as a standard 4-byte protection mask.DVI$_TT_xxxxDVI$_TT_xxxx is the format for a series of item codes that return information about terminals. This information consists of terminal characteristics. The xxxx portion of the item code name specifies a single terminal characteristic.Each of these item codes requires that the buffer specify a longword into which $GETDVI will write a 0 or 1: 0 if the terminal does not have the specified characteristic, and 1 if the terminal does have it. The one exception is the DVI$_TT_PAGE item code, which when specified causes $GETDVI to return a decimal longword value that is the page size of the terminal. You can also obtain this terminal-specific information by using the DVI$_DEVDEPEND and DVI$_DEVDEPEND2 item codes. Each of these two item codes specifies a longword bit vector wherein each bit corresponds to a terminal characteristic; $GETDVI sets the corresponding bit for each characteristic possessed by the terminal. Following is a list of the item codes that return information about terminal characteristics. For information about these characteristics, refer to the description of the F$GETDVI lexical function in the HP OpenVMS DCL Dictionary.
DVI$_WRITETHRU_CACHE_ENABLEDOn Alpha and I64, returns an unsigned longword, which is interpreted as Boolean. A value of 1 indicates the volume is mounted with write-through caching enabled.DVI$_WWIDOn Alpha and I64, returns the World Wide Identifier (WWID) of Fibre Channel Disk and Tape devices as a zero-filled string of indeterminate length.The maximum length of this string may change with new devices; therefore, HP recommends that a 380-byte buffer be passed to this function. A return length address should also be passed with the call and examined when the function completes. If the return length is equal to the size of the buffer, then call $GETDVI again with a larger buffer to ensure that the complete name has been read. DVI$_yyyyDVI$_yyyy is the format for a series of item codes that return device-independent characteristics of a device. There is an item code for each device characteristic returned in the longword bit vector specified by the DVI$_DEVCHAR item code.In the description of the DVI$_DEVCHAR item code is a list of symbol names in which each symbol represents a device characteristic. To construct the $GETDVI item code for each device characteristic, substitute for yyyy that portion of the symbol name that follows the underscore character. For example, the DVI$_REC item code returns the same information as the DEV$V_REC bit in the DVI$_DEVCHAR longword bit vector. The buffer for each of these item codes must specify a longword value, which is interpreted as Boolean. The $GETDVI service writes the value 1 into the longword if the device has the specified characteristic and the value 0 if it does not. DescriptionThe Get Device/Volume Information service returns primary and secondary device characteristics information about an I/O device. You can use the chan argument only if (1) the channel has already been assigned, and (2) the caller's access mode is equal to or more privileged than the access mode from which the original channel assignment was made. Condition Values Returned
Condition Values Returned in the I/O Status Block1Same as those returned in R0.
|