---
title: "DADiskGetBSDName(_:)"
framework: Disk Arbitration
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.1+, macOS 10.4+]
path: "diskarbitration/dadiskgetbsdname(_:)"
---

# DADiskGetBSDName(_:)

Obtains the BSD device name for the specified disk.

## Declaration

```swift
func DADiskGetBSDName(_ disk: DADisk) -> UnsafePointer<CChar>?
```

## Parameters

- `disk`: The DADisk for which to obtain the BSD device name.

## Return Value

Return Value The disk’s BSD device name.

## Discussion

Discussion The BSD device name can be used with opendev() to open the BSD device.

## See Also

### Miscellaneous

- [DADiskCopyDescription(_:)](diskarbitration/dadiskcopydescription(_:).md)
- [DADiskCopyIOMedia(_:)](diskarbitration/dadiskcopyiomedia(_:).md)
- [DADiskCopyWholeDisk(_:)](diskarbitration/dadiskcopywholedisk(_:).md)
- [DADiskCreateFromBSDName(_:_:_:)](diskarbitration/dadiskcreatefrombsdname(_:_:_:).md)
- [DADiskCreateFromIOMedia(_:_:_:)](diskarbitration/dadiskcreatefromiomedia(_:_:_:).md)
- [DADiskCreateFromVolumePath(_:_:_:)](diskarbitration/dadiskcreatefromvolumepath(_:_:_:).md)
- [DADiskGetTypeID()](diskarbitration/dadiskgettypeid().md)
