tanabarr / go-spdk

Go bindings for SPDK library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spdkGoDoc nvmeGoDoc

Go language bindings for the SPDK API

This is a Go interface for SPDK which is also a work in progress. Building this requires a local SPDK build, so start there first.

Current Status

  • Initial support will be for NVMe driver utilities.

How to Build

This is a Go project, so a Go development tools are naturally required. We recommend the most current Go release available. As of July 2018, the project has been built and tested with Go 1.9.

Setup environment and build. This assumes SPDK shared lib it installed in /usr/local/lib/libspdk.so. In order to use some of the SPDK API, please also follow Hugepages and Device Binding.

export GOPATH=$HOME/go
export LD_LIBRARY_PATH=/usr/local/lib
export PATH=/usr/local/bin:$PATH
export CGO_CPPFLAGS="-I/usr/local/include"
export CGO_LDFLAGS=-"-L/usr/local/lib -lspdk"

About

Go bindings for SPDK library

License:Other


Languages

Language:C 54.9%Language:Go 45.1%