---
name: "rfioreadopt"
section: "3"
platform: "linux"
package: "libdpm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/rfioreadopt"
---

# rfioreadopt(3)

get RFIO options

## NAME

rfioreadopt - get RFIO options

## SYNOPSIS

**#include \<sys/types.h\>**\
 **#include "rfio\_api.h"**

**int rfioreadopt (int** *opt***)**

## DESCRIPTION

**rfioreadopt** returns the option value.

- *opt*

  can have on of the following values:

  - **RFIO\_READOPT**

    - **RFIO\_NETOPT**

    - **RFIO\_NETRETRYOPT**

    - **RFIO\_CONNECTOPT**

    ## RETURN VALUE

**rfioreadopt** returns the option value when successful or -1 if the operation failed. In the latter case, **serrno** is set appropriately.

## ERRORS

- **EINVAL**

  *opt* is not a valid option.

## SEE ALSO

**[rfiosetopt(3)](/rfiosetopt/3.md)**, **[rfio\_open(3)](/rfio_open/3.md)**

## AUTHOR

**LCG Grid Deployment** Team
