Changeset View
Changeset View
Standalone View
Standalone View
contrib/ofed/libibverbs/examples/device_list.c
Show All 30 Lines | |||||
*/ | */ | ||||
#if HAVE_CONFIG_H | #if HAVE_CONFIG_H | ||||
# include <config.h> | # include <config.h> | ||||
#endif /* HAVE_CONFIG_H */ | #endif /* HAVE_CONFIG_H */ | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <endian.h> | |||||
#include <byteswap.h> | |||||
#include <infiniband/verbs.h> | #include <infiniband/verbs.h> | ||||
#include <infiniband/arch.h> | #include <infiniband/arch.h> | ||||
int main(int argc, char *argv[]) | int main(int argc, char *argv[]) | ||||
{ | { | ||||
struct ibv_device **dev_list; | struct ibv_device **dev_list; | ||||
int num_devices, i; | int num_devices, i; | ||||
Show All 19 Lines |