---
name: "ibv_get_device_guid"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
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\_guid()** 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\_index**(3)](/ibv_get_device_index/3.md), [**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)

## AUTHOR

Dotan Barak ⟨dotanba@gmail.com⟩\\c
