---
name: "ibv_get_device_guid"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/ibv_get_device_guid"
---

# ibv\_get\_device\_guid(3)

get an RDMA device's GUID

## NAME

ibv\_get\_device\_guid - get an RDMA device's GUID

## SYNOPSIS

```
#include <infiniband/verbs.h>

uint64_t ibv_get_device_guid(struct ibv_device *device);
```

## DESCRIPTION

**ibv\_get\_device\_name()** returns the Global Unique IDentifier (GUID) of the RDMA device *device.*

## RETURN VALUE

**ibv\_get\_device\_guid()** returns the GUID of the device in network byte order.

## SEE ALSO

[**ibv\_get\_device\_list**(3)](/ibv_get_device_list/3.md), [**ibv\_get\_device\_name**(3)](/ibv_get_device_name/3.md), [**ibv\_open\_device**(3)](/ibv_open_device/3.md)

## AUTHORS

- Dotan Barak \<dotanba@gmail.com\>
