1I2O_MSG_GET(9)               Message-based devices              I2O_MSG_GET(9)
2
3
4

NAME

6       i2o_msg_get - obtain an I2O message from the IOP
7

SYNOPSIS

9       struct i2o_message * i2o_msg_get(struct i2o_controller * c);
10

ARGUMENTS

12       c
13           I2O controller
14

DESCRIPTION

16       This function tries to get a message frame. If no message frame is
17       available do not wait until one is availabe (see also
18       i2o_msg_get_wait). The returned pointer to the message frame is not in
19       I/O memory, it is allocated from a mempool. But because a MFA is
20       allocated from the controller too it is guaranteed that i2o_msg_post
21       will never fail.
22
23       On a success a pointer to the message frame is returned. If the message
24       queue is empty -EBUSY is returned and if no memory is available -ENOMEM
25       is returned.
26
28Kernel Hackers Manual 2.6.         June 2019                    I2O_MSG_GET(9)
Impressum