Documentation
¶
Index ¶
- Constants
- func CreateBuffers() (messages []*MemoryRegion, meta *MemoryRegion)
- func Initialize()
- func InterfaceAddrs() []net.Addr
- func Poll(fds []Pollfd, timeout int64) (n int, err error)
- func SetupOptional() bool
- type Interface
- type MemoryRegion
- type Pollfd
- type QPAttr
- type QueuePair
- type RCConn
- func (this *RCConn) Close() error
- func (c *RCConn) LocalAddr() net.Addr
- func (this *RCConn) Read(mr *MemoryRegion) error
- func (this *RCConn) ReadMeta(mr *MemoryRegion, meta []byte) error
- func (this *RCConn) ReadPooled(mrChan <-chan *MemoryRegion) (*MemoryRegion, error)
- func (c *RCConn) RemoteAddr() net.Addr
- func (c *RCConn) SetTimeout(nsec int64)
- func (c *RCConn) Setup(destLid uint16, destQpn, destPsn uint32) error
- func (this *RCConn) Write(mr *MemoryRegion) error
- func (this *RCConn) WriteMeta(mr *MemoryRegion, meta []byte) error
- func (this *RCConn) WriteMetaStart() error
- func (c *RCConn) WriteTimeoutFatal(v bool)
- type RCListener
- type Rlimit
- type WorkCompletion
- func (wc *WorkCompletion) ImmData() uint32
- func (wc *WorkCompletion) Keepalive() bool
- func (wc *WorkCompletion) MemoryRegion() *MemoryRegion
- func (wc *WorkCompletion) Receive() bool
- func (wc *WorkCompletion) Send() bool
- func (wc *WorkCompletion) String() string
- func (wc *WorkCompletion) Success() bool
- func (wc *WorkCompletion) Write() bool
Constants ¶
View Source
const ( IBV_ACCESS_LOCAL_WRITE = C.IBV_ACCESS_LOCAL_WRITE IBV_ACCESS_REMOTE_WRITE = C.IBV_ACCESS_REMOTE_WRITE )
View Source
const ( POLLIN = 0x1 POLLPRI = 0x2 POLLOUT = 0x4 POLLRDHUP = 0x2000 POLLERR = 0x8 POLLHUP = 0x10 POLLNVAL = 0x20 )
View Source
const ( RLIM_INFINITY = -0x1 RLIMIT_AS = 0x9 RLIMIT_CORE = 0x4 RLIMIT_CPU = 0x0 RLIMIT_DATA = 0x2 RLIMIT_FSIZE = 0x1 RLIMIT_MEMLOCK = 0x8 RLIMIT_MSGQUEUE = 0xc RLIMIT_NICE = 0xd RLIMIT_NOFILE = 0x7 RLIMIT_NPROC = 0x6 RLIMIT_RSS = 0x5 RLIMIT_RTPRIO = 0xe RLIMIT_SIGPENDING = 0xb RLIMIT_STACK = 0x3 )
Variables ¶
This section is empty.
Functions ¶
func CreateBuffers ¶
func CreateBuffers() (messages []*MemoryRegion, meta *MemoryRegion)
func Initialize ¶
func Initialize()
func InterfaceAddrs ¶
func SetupOptional ¶
func SetupOptional() bool
Types ¶
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
func InterfaceForAddr ¶
type MemoryRegion ¶
type MemoryRegion struct {
// contains filtered or unexported fields
}
func AllocateMemory ¶
func AllocateMemory(size int) (*MemoryRegion, error)
func RegisterMemory ¶
func RegisterMemory(buf []byte) (*MemoryRegion, error)
func (*MemoryRegion) Bytes ¶
func (mr *MemoryRegion) Bytes() []byte
func (*MemoryRegion) Close ¶
func (mr *MemoryRegion) Close() error
func (*MemoryRegion) Len ¶
func (mr *MemoryRegion) Len() int
func (*MemoryRegion) Ptr ¶
func (mr *MemoryRegion) Ptr() unsafe.Pointer
func (*MemoryRegion) RemoteKey ¶
func (mr *MemoryRegion) RemoteKey(pd *C.struct_ibv_pd) uint32
func (*MemoryRegion) String ¶
func (this *MemoryRegion) String() string
type QueuePair ¶
type QueuePair interface { Qpn() uint32 Psn() uint32 Reset() error Init() error ReadyToReceive(destLid uint16, destQpn, destPsn uint32) error ReadyToSend() error Error() error Close() error PostSend(mr *MemoryRegion) error PostSendImm(imm uint32, mr *MemoryRegion) error PostReceive(mr *MemoryRegion) error PostWrite(mr *MemoryRegion, remoteAddr uint64, rkey uint32) error PostKeepalive() error Setup(destLid uint16, destQpn, destPsn uint32, messages []*MemoryRegion) error Poll(nsec int64) (*WorkCompletion, error) Query() *QPAttr Sending() bool }
type RCConn ¶
type RCConn struct {
// contains filtered or unexported fields
}
func (*RCConn) Read ¶
func (this *RCConn) Read(mr *MemoryRegion) error
Reading on both ends of the connection will not return an error.
func (*RCConn) ReadPooled ¶
func (this *RCConn) ReadPooled(mrChan <-chan *MemoryRegion) (*MemoryRegion, error)
func (*RCConn) RemoteAddr ¶
func (*RCConn) SetTimeout ¶
func (*RCConn) Write ¶
func (this *RCConn) Write(mr *MemoryRegion) error
Writing on both ends of the connection will return an error.
func (*RCConn) WriteMetaStart ¶
func (*RCConn) WriteTimeoutFatal ¶
type RCListener ¶
type RCListener struct {
// contains filtered or unexported fields
}
func (*RCListener) Accept ¶
func (this *RCListener) Accept() (*RCConn, error)
func (*RCListener) Addr ¶
func (this *RCListener) Addr() net.Addr
func (*RCListener) Close ¶
func (this *RCListener) Close() error
type WorkCompletion ¶
type WorkCompletion struct {
// contains filtered or unexported fields
}
func (*WorkCompletion) ImmData ¶
func (wc *WorkCompletion) ImmData() uint32
func (*WorkCompletion) Keepalive ¶
func (wc *WorkCompletion) Keepalive() bool
func (*WorkCompletion) MemoryRegion ¶
func (wc *WorkCompletion) MemoryRegion() *MemoryRegion
func (*WorkCompletion) Receive ¶
func (wc *WorkCompletion) Receive() bool
func (*WorkCompletion) Send ¶
func (wc *WorkCompletion) Send() bool
func (*WorkCompletion) String ¶
func (wc *WorkCompletion) String() string
func (*WorkCompletion) Success ¶
func (wc *WorkCompletion) Success() bool
func (*WorkCompletion) Write ¶
func (wc *WorkCompletion) Write() bool
Click to show internal directories.
Click to hide internal directories.