---
name: "i2o_msg_get"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/i2o_msg_get"
---

# i2o\_msg\_get(9)

obtain an I2O message from the IOP

## NAME

i2o\_msg\_get - obtain an I2O message from the IOP

## SYNOPSIS

**struct i2o\_message \* i2o\_msg\_get(struct i2o\_controller \*** *c***);**

## ARGUMENTS

*c*

I2O controller

## DESCRIPTION

This function tries to get a message frame. If no message frame is available do not wait until one is available (see also i2o\_msg\_get\_wait). The returned pointer to the message frame is not in I/O memory, it is allocated from a mempool. But because a MFA is allocated from the controller too it is guaranteed that **i2o\_msg\_post** will never fail.

On a success a pointer to the message frame is returned. If the message queue is empty -EBUSY is returned and if no memory is available -ENOMEM is returned.

## COPYRIGHT
