3 .TH IBV_CREATE_AH_FROM_WC 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
5 ibv_init_ah_from_wc, ibv_create_ah_from_wc \- initialize or create an
6 address handle (AH) from a work completion
9 .B #include <infiniband/verbs.h>
11 .BI "int ibv_init_ah_from_wc(struct ibv_context " "*context" ", uint8_t " "port_num" ,
12 .BI " struct ibv_wc " "*wc" ", struct ibv_grh " "*grh" ,
13 .BI " struct ibv_ah_attr " "*ah_attr" );
15 .BI "struct ibv_ah *ibv_create_ah_from_wc(struct ibv_pd " "*pd" ,
16 .BI " struct ibv_wc " "*wc" ,
17 .BI " struct ibv_grh " "*grh" ,
18 .BI " uint8_t " "port_num" );
21 .B ibv_init_ah_from_wc()
22 initializes the address handle (AH) attribute structure
24 for the RDMA device context
28 using attributes from the work completion
30 and the Global Routing Header (GRH) structure
33 .B ibv_create_ah_from_wc()
34 creates an AH associated with the protection domain
38 using attributes from the work completion
40 and the Global Routing Header (GRH) structure
43 .B ibv_init_ah_from_wc()
44 returns 0 on success, and \-1 on error.
46 .B ibv_create_ah_from_wc()
47 returns a pointer to the created AH, or NULL if the request fails.
52 .B ibv_init_ah_from_wc()
53 can be used to create a new AH using
54 .B ibv_create_ah()\fR.
56 .BR ibv_open_device (3),
58 .BR ibv_create_ah (3),
59 .BR ibv_destroy_ah (3),
63 Dotan Barak <dotanb@mellanox.co.il>