Contents

specialDeviceID

Device ID (if special file)

Declaration

var specialDeviceID: DeviceID { get set }

Discussion

For character or block special files, the returned DeviceID may have meaningful major and minor values. For non-special files, this property is usually meaningless and often set to 0.

The corresponding C property is st_rdev.