If you execute devreserv without arguments, devices that are currently reserved are listed, and the keys to which they are reserved. When devreserv is executed with only the key argument, it lists the devices currently reserved to that key.
The commands devreserv and devfree are used to manage the availability of devices on a system. Their use is on a participatory basis and they do not place any constraints on actual access to the device. They provide a centralized bookkeeping point for those who want to use them. To summarize, devices that have been reserved cannot be used by processes that utilize the device reservation functions until the reservation has been canceled. However, processes that do not use device reservation may use a device that has been reserved since such a process would not have checked for its reservation status.
$To list all devices currently reserved:key=$$
$echo "The Current Process ID is equal to: $key"
The Current Process ID is equal to: 10658 $devreserv $key diskette1,ctape1
$ devreserv
disk1 2423
diskette1 10658
ctape1 10658
To list all devices currently reserved to a particular key:
$ devreserv $key
diskette1
ctape1