What about putting this stuff in /sys/class/infiniband/rdma_cm/*
You could populate a file or directory for each cm_id and reading the
file (or files under the directory) could display the various useful
state.
Here's an example where each cm_id is a directory tree under
/sys/class/infiniband/rdma_cm/*
Two allocated cm_ids might take dir entries "0" and "1" (for lack of a
better token):
/sys/class/infiniband/rdma_cm/0/
/sys/class/infiniband/rdma_cm/1/
Then under these are files:
qp_num
src_addr
src_port
dst_addr
dst_port
port_space
device_name
id_state
ib/* (for ib-specific stuff)
iw/* (for iw-specific stuff)
Steve.
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general