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

NAME

6       i2o_msg_post_wait_complete - Reply to a i2o_msg_post request from IOP
7

SYNOPSIS

9       int i2o_msg_post_wait_complete(struct i2o_controller * c, u32 m,
10                                      struct i2o_message * msg, u32 context);
11

ARGUMENTS

13       c
14           I2O controller which answers
15
16       m
17           message id
18
19       msg
20           pointer to the I2O reply message
21
22       context
23           transaction context of request
24

DESCRIPTION

26       This function is called in interrupt context only. If the reply reached
27       before the timeout, the i2o_exec_wait struct is filled with the message
28       and the task will be waked up. The task is now responsible for
29       returning the message m back to the controller! If the message reaches
30       us after the timeout clean up the i2o_exec_wait struct (including
31       allocated DMA buffer).
32
33       Return 0 on success and if the message m should not be given back to
34       the I2O controller, or >0 on success and if the message should be given
35       back afterwords. Returns negative error code on failure. In this case
36       the message must also be given back to the controller.
37
39Kernel Hackers Manual 3.10         June 2019           I2O_MSG_POST_WAIT_CO(9)
Impressum