---
name: "rpma_mr_remote_get_flush_type"
section: "3"
platform: "linux"
package: "librpma-dev"
version: "1.3.0-2+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rpma_mr_remote_get_flush_type"
---

# rpma\_mr\_remote\_get\_flush\_type(3)

get a remote memory region's flush types

## NAME

**rpma\_mr\_remote\_get\_flush\_type** - get a remote memory region's flush types

## SYNOPSIS

```
      #include <librpma.h>
      struct rpma_mr_remote;
      int rpma_mr_remote_get_flush_type(const struct rpma_mr_remote *mr, int *flush_type);
```

## DESCRIPTION

**rpma\_mr\_remote\_get\_flush\_type**() gets flush types supported by the remote memory region.

## RETURN VALUE

The **rpma\_mr\_remote\_get\_flush\_type**() function returns 0 on success or a negative error code on failure. **rpma\_mr\_remote\_get\_flush\_type**() does not set \*flush\_type value on failure.

## ERRORS

**rpma\_mr\_remote\_get\_flush\_type**() can fail with the following error:

- •

  RPMA\_E\_INVAL - mr or flush\_type is NULL

## SEE ALSO

[**rpma\_mr\_remote\_from\_descriptor**(3)](/rpma_mr_remote_from_descriptor/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
