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

NAME

6       i2o_msg_post_wait_mem - Post and wait a message with DMA buffers
7

SYNOPSIS

9       int i2o_msg_post_wait_mem(struct i2o_controller * c,
10                                 struct i2o_message * msg,
11                                 unsigned long timeout, struct i2o_dma * dma);
12

ARGUMENTS

14       c
15           controller
16
17       msg
18           message to post
19
20       timeout
21           time in seconds to wait
22
23       dma
24           i2o_dma struct of the DMA buffer to free on failure
25

DESCRIPTION

27       This API allows an OSM to post a message and then be told whether or
28       not the system received a successful reply. If the message times out
29       then the value ´-ETIMEDOUT´ is returned. This is a special case. In
30       this situation the message may (should) complete at an indefinite time
31       in the future. When it completes it will use the memory buffer attached
32       to the request. If -ETIMEDOUT is returned then the memory buffer must
33       not be freed. Instead the event completion will free them for you. In
34       all other cases the buffer are your problem.
35
36       Returns 0 on success, negative error code on timeout or positive error
37       code from reply.
38
40Kernel Hackers Manual 2.6.         June 2019           I2O_MSG_POST_WAIT_ME(9)
Impressum