https://github.com/mellanox/rdmamap
RDMA library for mapping associate netdevice and character devices
https://github.com/mellanox/rdmamap
rdma
Last synced: 5 months ago
JSON representation
RDMA library for mapping associate netdevice and character devices
- Host: GitHub
- URL: https://github.com/mellanox/rdmamap
- Owner: Mellanox
- License: apache-2.0
- Created: 2018-05-08T20:10:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T10:50:33.000Z (over 1 year ago)
- Last Synced: 2025-06-29T21:39:35.527Z (12 months ago)
- Topics: rdma
- Language: Go
- Homepage:
- Size: 9.18 MB
- Stars: 74
- Watchers: 11
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://www.apache.org/licenses/LICENSE-2.0)
[](https://goreportcard.com/report/github.com/Mellanox/rdmamap)
[](https://travis-ci.com/Mellanox/rdmamap)
[](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)
}
}
```