tk_oref_dev
Reference Device
Reference Device

tk_oref_dev
Reference Device
Reference Device
ID devid = tk_ref_dev ( UB *devnm, T_RDEV *pk_rdev ) ;
ID devid = tk_oref_dev ( ID dd, T_RDEV *pk_rdev ) ;
UB* devnm Device name
ID dd Device descriptor
T_RDEV* pk_rdev Device information
ID devid Device ID
or Error code
pk_rdev detail:
ATR devatr Device attributes
W blksz Block size of device-specific data (-1: unknown)
INT nsub subunit count
INT subno 0: physical device: 1 to nsub: subunit number+1
(Implementation-dependent information may be added beyond this point.)
E_NOEXS The device specified in devnm does not exist.
Gets information about the device specified in devnm or dd and puts the result in pk_rdev.
If pk_rdev = NULL is set, the device information is not stored. nsub indicates the number of physical device subunits belonging to the device specified in devnm or dd.
The device ID of the device specified in devnm is passed in the return code.
blksz, the member of T_RDEV, is of W type instead of INT type.
Comments
Click here to Post a Comment