Documentation
¶
Overview ¶
Package spdkenv contains bindings of SPDK environment and threads.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = strings.TrimPrefix(C.SPDK_VERSION_STRING, "SPDK v")
Version is SPDK version.
Functions ¶
func CaptureJSON ¶
CaptureJSON invokes a function that writes to *C.struct_spdk_json_write_ctx, and unmarshals what's been written.
func InitMainThread ¶
func InitMainThread(ret chan<- any)
InitMainThread creates a main thread, and launches on the current goroutine. This must be invoked on the MainLCore. This function never returns; either the main thread (*Thread) or an error is sent to `ret`.
func JSONObject ¶
JSONObject can be used with CaptureJSON to wrap the output in a JSON object.
Types ¶
type Thread ¶
type Thread struct { ealthread.ThreadWithCtrl RcuReadSide *urcu.ReadSide // contains filtered or unexported fields }
Thread represents an SPDK thread.
func NewThread ¶
NewThread creates an SPDK thread. The caller needs to assign it a DPDK lcore and launch it.
func (*Thread) ThreadRole ¶
ThreadRole returns "SPDK" used in lcore allocator.
Click to show internal directories.
Click to hide internal directories.