Versions in this module Expand all Collapse all v0 v0.1.0 Nov 1, 2026 Changes in this version + type BindQPReq struct — linux/amd64 + CounterID *uint32 + DevIndex uint32 + LQPN uint32 + PortIndex uint32 + type CMID struct — linux/amd64 + Driver []Driver + Dst netip.AddrPort + ID uint32 + KernName string + PID uint32 + Port uint32 + PortSpace uint32 + QPN *uint32 + QPType *uint8 + Src netip.AddrPort + State uint8 + type CMIDReq struct — linux/amd64 + CMIDN uint32 + DevIndex uint32 + DriverDetails bool + PortIndex uint32 + type CQ struct — linux/amd64 + CQE uint32 + CtxN *uint32 + Dim bool + Driver []Driver + ID uint32 + KernName string + PID uint32 + PollCtx *uint8 + Users uint64 + type CQReq struct — linux/amd64 + CQN uint32 + DevIndex uint32 + DriverDetails bool + type Chardev struct — linux/amd64 + ABI uint64 + Dev uint64 + DriverID uint32 + Name string + type ChardevReq struct — linux/amd64 + ChardevType string + DevIndex *uint32 + PortIndex uint32 + type Config struct — linux/amd64 + NetNS int + type Conn struct — linux/amd64 + func Open(config *Config) (*Conn, error) + func (c *Conn) BindQP(req BindQPReq) (uint32, error) + func (c *Conn) CMID(req CMIDReq) (CMID, error) + func (c *Conn) CMIDs(req CMIDReq) ([]CMID, error) + func (c *Conn) CQ(req CQReq) (CQ, error) + func (c *Conn) CQs(req CQReq) ([]CQ, error) + func (c *Conn) Chardev(req ChardevReq) (Chardev, error) + func (c *Conn) Close() error + func (c *Conn) Context(req ContextReq) (Context, error) + func (c *Conn) Contexts(req ContextReq) ([]Context, error) + func (c *Conn) CounterMode(req CounterModeReq) (CounterConfig, error) + func (c *Conn) CounterStatus(req CounterStatusReq) ([]CounterStatus, error) + func (c *Conn) Counters(req CountersReq) ([]Counter, error) + func (c *Conn) DelDev(req DelDevReq) error + func (c *Conn) DelLink(req DelLinkReq) error + func (c *Conn) Device(req DeviceReq) (Device, error) + func (c *Conn) Devices() ([]Device, error) + func (c *Conn) EnableCounters(req EnableCountersReq) error + func (c *Conn) FRMRPools(req FRMRPoolsReq) ([]FRMRPool, error) + func (c *Conn) MR(req MRReq) (MR, error) + func (c *Conn) MRCounter(req MRCounterReq) (MRCounters, error) + func (c *Conn) MRCounters(req MRCounterReq) ([]MRCounters, error) + func (c *Conn) MRs(req MRReq) ([]MR, error) + func (c *Conn) Monitor() (*Monitor, error) + func (c *Conn) NewDev(req NewDevReq) error + func (c *Conn) NewLink(req NewLinkReq) error + func (c *Conn) PD(req PDReq) (PD, error) + func (c *Conn) PDs(req PDReq) ([]PD, error) + func (c *Conn) Port(req PortReq) (Port, error) + func (c *Conn) Ports(req PortReq) ([]Port, error) + func (c *Conn) QP(req QPReq) (QP, error) + func (c *Conn) QPCounter(req QPCounterReq) (QPCounter, error) + func (c *Conn) QPCounters(req QPCounterReq) ([]QPCounter, error) + func (c *Conn) QPs(req QPReq) ([]QP, error) + func (c *Conn) RawCQ(req CQReq) ([]byte, error) + func (c *Conn) RawCQs(req CQReq) ([][]byte, error) + func (c *Conn) RawMR(req MRReq) ([]byte, error) + func (c *Conn) RawMRs(req MRReq) ([][]byte, error) + func (c *Conn) RawQP(req QPReq) ([]byte, error) + func (c *Conn) RawQPs(req QPReq) ([][]byte, error) + func (c *Conn) RawSRQ(req SRQReq) ([]byte, error) + func (c *Conn) RawSRQs(req SRQReq) ([][]byte, error) + func (c *Conn) Rename(req RenameReq) error + func (c *Conn) Resources(req ResourcesReq) ([]ResourceCount, error) + func (c *Conn) SRQ(req SRQReq) (SRQ, error) + func (c *Conn) SRQs(req SRQReq) ([]SRQ, error) + func (c *Conn) SetAutoCounterMode(req SetAutoCounterModeReq) error + func (c *Conn) SetDim(req SetDimReq) error + func (c *Conn) SetFRMRAgingPeriod(req SetFRMRAgingPeriodReq) error + func (c *Conn) SetFRMRPinnedHandles(req SetFRMRPinnedHandlesReq) error + func (c *Conn) SetNetNS(req SetNetNSReq) error + func (c *Conn) SetNetNSMode(req SetNetNSModeReq) error + func (c *Conn) SetPrivilegedQKeyMode(req SetPrivilegedQKeyModeReq) error + func (c *Conn) Sys() (Sys, error) + func (c *Conn) UnbindQP(req UnbindQPReq) error + type Context struct — linux/amd64 + ID uint32 + KernName string + PID uint32 + type ContextReq struct — linux/amd64 + CtxN uint32 + DevIndex uint32 + DriverDetails bool + type Counter struct — linux/amd64 + Name string + Value uint64 + type CounterConfig struct — linux/amd64 + Mask CounterMask + Mode CounterMode + Opcounters bool + type CounterMask uint32 — linux/amd64 + const CounterMaskPID + const CounterMaskQPType + type CounterMode uint32 — linux/amd64 + const CounterModeAuto + const CounterModeManual + const CounterModeNone + type CounterModeReq struct — linux/amd64 + DevIndex uint32 + PortIndex uint32 + type CounterStatus struct — linux/amd64 + Enabled bool + Index uint32 + Name string + Optional bool + type CounterStatusReq struct — linux/amd64 + DevIndex uint32 + PortIndex uint32 + type CountersReq struct — linux/amd64 + DevIndex uint32 + PortIndex uint32 + type DelDevReq struct — linux/amd64 + DevIndex uint32 + type DelLinkReq struct — linux/amd64 + DevIndex uint32 + type DevType uint8 — linux/amd64 + const DevTypeSMI + type Device struct — linux/amd64 + CapFlags uint64 + Dim bool + FWVersion string + Index uint32 + Name string + NameAssignType NameAssignType + NodeGUID uint64 + NodeType uint8 + ParentName string + Ports uint32 + Protocol string + SysImageGUID uint64 + Type DevType + type DeviceReq struct — linux/amd64 + DevIndex uint32 + type Driver struct — linux/amd64 + Name string + PrintType *PrintType + S32 *int32 + S64 *int64 + String *string + U32 *uint32 + U64 *uint64 + type EnableCountersReq struct — linux/amd64 + DevIndex uint32 + Indices []uint32 + PortIndex uint32 + type Event struct — linux/amd64 + DevIndex uint32 + DevName string + NdevIndex uint32 + NdevName string + Port uint32 + Type EventType + type EventType uint8 — linux/amd64 + const EventNetdevAttach + const EventNetdevDetach + const EventNetdevRename + const EventRegister + const EventRename + const EventUnregister + type FRMRKey struct — linux/amd64 + ATS bool + AccessFlags uint32 + KernelVendorKey uint64 + NumDMABlocks uint64 + VendorKey uint64 + type FRMRPool struct — linux/amd64 + InUse uint64 + Key FRMRKey + MaxInUse uint64 + PinnedHandles uint32 + QueueHandles uint32 + type FRMRPoolsReq struct — linux/amd64 + DevIndex uint32 + DriverDetails bool + type MR struct — linux/amd64 + Driver []Driver + ID uint32 + KernName string + LKey *uint32 + Length uint64 + PDN *uint32 + PID uint32 + RKey *uint32 + type MRCounterReq struct — linux/amd64 + DevIndex uint32 + DriverDetails bool + MRN uint32 + type MRCounters struct — linux/amd64 + Counters []Counter + ID uint32 + type MRReq struct — linux/amd64 + DevIndex uint32 + DriverDetails bool + MRN uint32 + type Monitor struct — linux/amd64 + func (m *Monitor) Close() error + func (m *Monitor) Receive() (Event, error) + func (m *Monitor) SetDeadline(t time.Time) error + type NameAssignType uint8 — linux/amd64 + const NameAssignTypeUnknown + const NameAssignTypeUser + type NewDevReq struct — linux/amd64 + DevIndex uint32 + DevName string + DevType DevType + type NewLinkReq struct — linux/amd64 + DevName string + LinkType string + NdevName string + type PD struct — linux/amd64 + CtxN *uint32 + Driver []Driver + ID uint32 + KernName string + LocalDMALKey *uint32 + PID uint32 + UnsafeGlobalRKey *uint32 + Users uint64 + type PDReq struct — linux/amd64 + DevIndex uint32 + DriverDetails bool + PDN uint32 + type Port struct — linux/amd64 + CapFlags uint64 + DevIndex uint32 + DevName string + Index uint32 + LID uint32 + LMC uint8 + NdevIndex uint32 + NdevName string + PhysState uint8 + SMLID uint32 + State uint8 + SubnetPrefix uint64 + type PortReq struct — linux/amd64 + DevIndex uint32 + PortIndex uint32 + type PrintType uint8 — linux/amd64 + const PrintTypeHex + const PrintTypeUnspec + type QP struct — linux/amd64 + Driver []Driver + KernName string + PDN *uint32 + PID uint32 + PathMigState *uint8 + Port uint32 + QPN uint32 + RQPSN *uint32 + RemoteQPN *uint32 + SQPSN uint32 + State uint8 + Subtype string + Type uint8 + type QPCounter struct — linux/amd64 + Counters []Counter + ID uint32 + KernName string + Mode CounterMode + PID uint32 + Port uint32 + QPType *uint8 + QPs []uint32 + type QPCounterReq struct — linux/amd64 + CounterID uint32 + DevIndex uint32 + DriverDetails bool + PortIndex uint32 + type QPRange struct — linux/amd64 + Max uint32 + Min uint32 + type QPReq struct — linux/amd64 + DevIndex uint32 + DriverDetails bool + LQPN uint32 + PortIndex uint32 + type RenameReq struct — linux/amd64 + DevIndex uint32 + DevName string + type ResourceCount struct — linux/amd64 + Curr uint64 + Max uint64 + Name string + type ResourcesReq struct — linux/amd64 + DevIndex uint32 + DriverDetails bool + type SRQ struct — linux/amd64 + CQN *uint32 + Driver []Driver + ID uint32 + KernName string + PDN uint32 + PID uint32 + QPs []QPRange + Type uint8 + type SRQReq struct — linux/amd64 + DevIndex uint32 + DriverDetails bool + SRQN uint32 + type SetAutoCounterModeReq struct — linux/amd64 + DevIndex uint32 + Mask CounterMask + Opcounters bool + PortIndex uint32 + type SetDimReq struct — linux/amd64 + DevDim bool + DevIndex uint32 + type SetFRMRAgingPeriodReq struct — linux/amd64 + AgingPeriod uint32 + DevIndex uint32 + type SetFRMRPinnedHandlesReq struct — linux/amd64 + DevIndex uint32 + Key FRMRKey + PinnedHandles uint32 + type SetNetNSModeReq struct — linux/amd64 + NetNSShared bool + type SetNetNSReq struct — linux/amd64 + DevIndex uint32 + DevName string + NetNSFD int + type SetPrivilegedQKeyModeReq struct — linux/amd64 + PrivilegedQKey bool + type Sys struct — linux/amd64 + CopyOnFork bool + Monitor bool + NetNSShared bool + PrivilegedQKey bool + type UnbindQPReq struct — linux/amd64 + CounterID uint32 + DevIndex uint32 + LQPN uint32 + PortIndex uint32