---
title: specialDeviceID
framework: system
role: symbol
role_heading: Instance Property
path: system/stat/specialdeviceid
---

# specialDeviceID

Device ID (if special file)

## Declaration

```swift
var specialDeviceID: DeviceID { get set }
```

## Discussion

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.
