Documentation
¶
Overview ¶
Package rdma provides Go bindings for the rdma framework.
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Constants
- func Available() bool
- func Ibv_close_device(context RDMAContext) (int, error)
- func Ibv_dealloc_pd(pd RDMAPD) (int, error)
- func Ibv_dereg_mr(mr RDMAMR) (int, error)
- func Ibv_destroy_cq(cq RDMACQ) (int, error)
- func Ibv_destroy_qp(qp RDMAQP) (int, error)
- func Ibv_free_device_list(list RDMADeviceList) error
- func Ibv_get_device_name(device RDMADevice) (uintptr, error)
- func Ibv_modify_qp(qp RDMAQP, attr uintptr, attr_mask int) (int, error)
- func Ibv_mr_lkey(mr RDMAMR) uint32
- func Ibv_mr_rkey(mr RDMAMR) uint32
- func Ibv_poll_cq(cq RDMACQ, numEntries int, wc *IbvWC) (int, error)
- func Ibv_post_recv(qp RDMAQP, wr *IbvRecvWR, badWR **IbvRecvWR) (int, error)
- func Ibv_post_send(qp RDMAQP, wr *IbvSendWR, badWR **IbvSendWR) (int, error)
- func Ibv_qp_num(qp RDMAQP) uint32
- func Ibv_query_device(context RDMAContext, device_attr uintptr) (int, error)
- func Ibv_query_gid(context RDMAContext, port_num uint8, index int, gid uintptr) (int, error)
- func Ibv_query_port(context RDMAContext, port_num uint8, port_attr uintptr) (int, error)
- type Device
- type IbvAHAttr
- type IbvCQPoller
- type IbvGID
- type IbvGlobalRoute
- type IbvPortAttr
- type IbvQPAttr
- type IbvQPCap
- type IbvQPInitAttr
- type IbvQPPoster
- type IbvRecvWR
- type IbvSGE
- type IbvSendWR
- type IbvWC
- type RDMACQ
- type RDMAContext
- type RDMADevice
- type RDMADeviceList
- type RDMAMR
- type RDMAPD
- type RDMAQP
Constants ¶
const ( IBV_ACCESS_LOCAL_WRITE = 1 IBV_ACCESS_REMOTE_WRITE = 2 IBV_ACCESS_REMOTE_READ = 4 IBV_QPT_UC = 3 IBV_QPS_INIT = 1 IBV_QPS_RTR = 2 IBV_QPS_RTS = 3 IBV_QP_STATE = 1 IBV_QP_ACCESS_FLAGS = 8 IBV_QP_PKEY_INDEX = 16 IBV_QP_PORT = 32 IBV_QP_AV = 128 IBV_QP_PATH_MTU = 256 IBV_QP_RQ_PSN = 4096 IBV_QP_SQ_PSN = 65536 IBV_QP_DEST_QPN = 1048576 IBV_MTU_1024 = 3 IBV_WR_RDMA_WRITE = 0 IBV_WR_SEND = 2 IBV_SEND_SIGNALED = 2 IBV_WC_SUCCESS = 0 )
Variables ¶
This section is empty.
Functions ¶
func Available ¶
func Available() bool
Available reports whether librdma and the generated probe symbols are available.
func Ibv_close_device ¶
func Ibv_close_device(context RDMAContext) (int, error)
Ibv_close_device.
See: https://developer.apple.com/documentation/RDMA/ibv_close_device
func Ibv_dealloc_pd ¶
Ibv_dealloc_pd.
See: https://developer.apple.com/documentation/RDMA/ibv_dealloc_pd
func Ibv_destroy_cq ¶
Ibv_destroy_cq.
See: https://developer.apple.com/documentation/RDMA/ibv_destroy_cq
func Ibv_destroy_qp ¶
Ibv_destroy_qp.
See: https://developer.apple.com/documentation/RDMA/ibv_destroy_qp
func Ibv_free_device_list ¶
func Ibv_free_device_list(list RDMADeviceList) error
Ibv_free_device_list.
See: https://developer.apple.com/documentation/RDMA/ibv_free_device_list
func Ibv_get_device_name ¶
func Ibv_get_device_name(device RDMADevice) (uintptr, error)
Ibv_get_device_name.
See: https://developer.apple.com/documentation/RDMA/ibv_get_device_name
func Ibv_modify_qp ¶
Ibv_modify_qp.
See: https://developer.apple.com/documentation/RDMA/ibv_modify_qp
func Ibv_mr_lkey ¶
func Ibv_mr_rkey ¶
func Ibv_poll_cq ¶
Ibv_poll_cq calls the SDK inline ibv_poll_cq wrapper through ibv_context_ops.
func Ibv_post_recv ¶
Ibv_post_recv calls the SDK inline ibv_post_recv wrapper through ibv_context_ops.
func Ibv_post_send ¶
Ibv_post_send calls the SDK inline ibv_post_send wrapper through ibv_context_ops.
func Ibv_qp_num ¶
func Ibv_query_device ¶
func Ibv_query_device(context RDMAContext, device_attr uintptr) (int, error)
Ibv_query_device.
See: https://developer.apple.com/documentation/RDMA/ibv_query_device
func Ibv_query_gid ¶
Ibv_query_gid.
See: https://developer.apple.com/documentation/RDMA/ibv_query_gid
func Ibv_query_port ¶
func Ibv_query_port(context RDMAContext, port_num uint8, port_attr uintptr) (int, error)
Ibv_query_port.
See: https://developer.apple.com/documentation/RDMA/ibv_query_port
Types ¶
type Device ¶
type Device struct {
Handle RDMADevice
Name string
}
Device describes an RDMA device returned by Devices.
type IbvAHAttr ¶
type IbvAHAttr struct {
GRH IbvGlobalRoute
DLID uint16
SL uint8
SrcPathBits uint8
StaticRate uint8
IsGlobal uint8
PortNum uint8
// contains filtered or unexported fields
}
IbvAHAttr matches struct ibv_ah_attr.
type IbvCQPoller ¶
type IbvCQPoller struct {
// contains filtered or unexported fields
}
func NewIbvCQPoller ¶
func NewIbvCQPoller(cq RDMACQ) (IbvCQPoller, error)
type IbvGlobalRoute ¶
type IbvGlobalRoute struct {
DGID IbvGID
FlowLabel uint32
SGIDIndex uint8
HopLimit uint8
TrafficClass uint8
// contains filtered or unexported fields
}
IbvGlobalRoute matches struct ibv_global_route.
type IbvPortAttr ¶
IbvPortAttr exposes the fields used by RDMA examples.
type IbvQPAttr ¶
type IbvQPAttr struct {
QPState int32
CurQPState int32
PathMTU int32
PathMigState int32
QKey uint32
RQPSN uint32
SQPSN uint32
DestQPNum uint32
QPAccessFlags int32
Cap IbvQPCap
AHAttr IbvAHAttr
AltAHAttr IbvAHAttr
PKeyIndex uint16
AltPKeyIndex uint16
EnSQDAsyncNotify uint8
SQDraining uint8
MaxRDAtomic uint8
MaxDestRDAtomic uint8
MinRNRTimer uint8
PortNum uint8
Timeout uint8
RetryCnt uint8
RNRetry uint8
AltPortNum uint8
AltTimeout uint8
// contains filtered or unexported fields
}
IbvQPAttr matches the fields commonly used with ibv_modify_qp.
type IbvQPCap ¶
type IbvQPCap struct {
MaxSendWR uint32
MaxRecvWR uint32
MaxSendSGE uint32
MaxRecvSGE uint32
MaxInlineData uint32
}
IbvQPCap matches struct ibv_qp_cap.
type IbvQPInitAttr ¶
type IbvQPInitAttr struct {
QPContext uintptr
SendCQ RDMACQ
RecvCQ RDMACQ
SRQ uintptr
Cap IbvQPCap
QPType int32
SQSigAll int32
}
IbvQPInitAttr matches struct ibv_qp_init_attr.
type IbvQPPoster ¶
type IbvQPPoster struct {
// contains filtered or unexported fields
}
func NewIbvQPPoster ¶
func NewIbvQPPoster(qp RDMAQP) (IbvQPPoster, error)
type IbvRecvWR ¶
type IbvRecvWR struct {
WRID uint64
Next *IbvRecvWR
SGList *IbvSGE
NumSGE int32
// contains filtered or unexported fields
}
IbvRecvWR matches struct ibv_recv_wr.
type IbvSendWR ¶
type IbvSendWR struct {
WRID uint64
Next *IbvSendWR
SGList *IbvSGE
NumSGE int32
Opcode int32
SendFlags int32
ImmData uint32
WR [32]byte
QPType [8]byte
BindMW [48]byte
}
IbvSendWR matches struct ibv_send_wr for send operations.
type IbvWC ¶
type IbvWC struct {
WRID uint64
Status int32
Opcode int32
VendorErr uint32
ByteLen uint32
ImmData uint32
QPNum uint32
SrcQP uint32
WCFlags int32
PKeyIndex uint16
SLID uint16
SL uint8
DLIDPathBits uint8
PortNum uint8
// contains filtered or unexported fields
}
IbvWC matches struct ibv_wc.
type RDMACQ ¶
type RDMACQ = uintptr
See: https://developer.apple.com/documentation/RDMA/RDMACQ
func Ibv_create_cq ¶
func Ibv_create_cq(context RDMAContext, cqe int, cq_context uintptr, channel uintptr, comp_vector int) (RDMACQ, error)
Ibv_create_cq.
See: https://developer.apple.com/documentation/RDMA/ibv_create_cq
type RDMAContext ¶
type RDMAContext = uintptr
See: https://developer.apple.com/documentation/RDMA/RDMAContext
func Ibv_open_device ¶
func Ibv_open_device(device RDMADevice) (RDMAContext, error)
Ibv_open_device.
See: https://developer.apple.com/documentation/RDMA/ibv_open_device
type RDMADevice ¶
type RDMADevice = uintptr
See: https://developer.apple.com/documentation/RDMA/RDMADevice
type RDMADeviceList ¶
type RDMADeviceList = uintptr
See: https://developer.apple.com/documentation/RDMA/RDMADeviceList
func Ibv_get_device_list ¶
func Ibv_get_device_list(num_devices uintptr) (RDMADeviceList, error)
Ibv_get_device_list.
See: https://developer.apple.com/documentation/RDMA/ibv_get_device_list
type RDMAMR ¶
type RDMAMR = uintptr
type RDMAPD ¶
type RDMAPD = uintptr
See: https://developer.apple.com/documentation/RDMA/RDMAPD
func Ibv_alloc_pd ¶
func Ibv_alloc_pd(context RDMAContext) (RDMAPD, error)
Ibv_alloc_pd.
See: https://developer.apple.com/documentation/RDMA/ibv_alloc_pd
type RDMAQP ¶
type RDMAQP = uintptr
See: https://developer.apple.com/documentation/RDMA/RDMAQP
func Ibv_create_qp ¶
Ibv_create_qp.
See: https://developer.apple.com/documentation/RDMA/ibv_create_qp