# rdmamap **Repository Path**: leechm/rdmamap ## Basic Information - **Project Name**: rdmamap - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Go Report Card](https://goreportcard.com/badge/github.com/Mellanox/rdmamap)](https://goreportcard.com/report/github.com/Mellanox/rdmamap) [![Build Status](https://travis-ci.com/Mellanox/rdmamap.svg?branch=master)](https://travis-ci.com/Mellanox/rdmamap) [![Coverage Status](https://coveralls.io/repos/github/Mellanox/rdmamap/badge.svg)](https://coveralls.io/github/Mellanox/rdmamap) # rdmamap This is golang package that provides map of rdma device with its character and network devices. It uses sysfs and netlink interfaces provided by kernel to perform this mapping. Local build and test You can use go get command: ``` go get github.com/Mellanox/rdmamap ``` Example: ``` package main import ( "fmt" "github.com/Mellanox/rdmamap" ) func main() { rdmaDevices := rdmamap.GetRdmaDeviceList() fmt.Println("Devices: ", rdmaDevices) for _, dev := range rdmaDevices { charDevices := rdmamap.GetRdmaCharDevices(dev) fmt.Printf("Rdma device: = %s", dev) fmt.Println(" Char devices: = ", charDevices) } } ```