1IBV_CREATE_AH_FROM_WC(3)Libibverbs Programmer's ManualIBV_CREATE_AH_FROM_WC(3)
2
3
4

NAME

6       ibv_init_ah_from_wc,  ibv_create_ah_from_wc  -  initialize or create an
7       address handle (AH) from a work completion
8

SYNOPSIS

10       #include <infiniband/verbs.h>
11
12       int ibv_init_ah_from_wc(struct ibv_context *context, uint8_t port_num,
13                               struct ibv_wc *wc, struct ibv_grh *grh,
14                               struct ibv_ah_attr *ah_attr);
15       struct ibv_ah *ibv_create_ah_from_wc(struct ibv_pd *pd,
16                                            struct ibv_wc *wc,
17                                            struct ibv_grh *grh,
18                                            uint8_t port_num);
19

DESCRIPTION

21       ibv_init_ah_from_wc() initializes the  address  handle  (AH)  attribute
22       structure  ah_attr  for the InfiniBand device context context using the
23       port number port_num, using attributes from the work completion wc  and
24       the Global Routing Header (GRH) structure grh.
25
26       ibv_create_ah_from_wc()  creates  an  AH associated with the protection
27       domain pd using the port number port_num,  using  attributes  from  the
28       work completion wc and the Global Routing Header (GRH) structure grh.
29

RETURN VALUE

31       ibv_init_ah_from_wc() returns 0 on success, and -1 on error.
32
33       ibv_create_ah_from_wc() returns a pointer to the created AH, or NULL if
34       the request fails.
35

NOTES

37       The filled structure ah_attr returned from ibv_init_ah_from_wc() can be
38       used to create a new AH using ibv_create_ah().
39

SEE ALSO

41       ibv_open_device(3),          ibv_alloc_pd(3),         ibv_create_ah(3),
42       ibv_destroy_ah(3), ibv_poll_cq(3)
43

AUTHORS

45       Dotan Barak <dotanb@mellanox.co.il>
46
47
48
49libibverbs                        2006-10-31          IBV_CREATE_AH_FROM_WC(3)
Impressum