3 .TH IBV_QUERY_PKEY 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
5 ibv_query_pkey \- query an InfiniBand port's P_Key table
8 .B #include <infiniband/verbs.h>
10 .BI "int ibv_query_pkey(struct ibv_context " "*context" ", uint8_t " "port_num" ,
11 .BI " int " "index" ", uint16_t " "*pkey" ");
15 returns the P_Key value (in network byte order) in entry
25 returns 0 on success, and \-1 on error.
27 .BR ibv_open_device (3),
28 .BR ibv_query_device (3),
29 .BR ibv_query_port (3),
33 Dotan Barak <dotanb@mellanox.co.il>