How microsoft/windows-usb4-rdma works
NetworkDirect over USB4 is a Windows NDv2 provider that exposes RDMA-style operations over Windows’ USB4 peer-to-peer networking drivers. The principal workflow is an application using the standard NetworkDirect interfaces, which the provider implements by forwarding supported two-sided send/receive operations to the kernel driver. The README also documents provider discovery and address-based adapter selection, installation, and example tools. Provider internals beyond the sampled entry point and interface declarations are described only at the README level, so those relationships cite the README.
Main entry points: ndprov.cpp USB4 provider · ndutil Provider helper library · ndspi.h NDv2 interfaces · ndfrmwrk.cpp Address and adapter selection
Components 14
Application API
- NDv2 interfaces
src/ndutil/ndspi.h
Provider Runtime
- USB4 provider
src/ndprov/ndprov.cpp - Provider entry point
src/ndprov/dllmain.cpp - RDMA IOCTL definitions
src/ndprov/RdmaIoctl.h
Discovery and Setup
- Provider helper library
src/ndutil - Provider catalog
- Address and adapter selection
src/ndutil/ndfrmwrk.cpp - Address helpers
src/ndutil/ndaddr.cpp - Catalog installer
src/install/ndprov_install.cpp
Example Tools
- Example tools
src/examples
Other components
- RDMA application
- USB4 P2P RDMA driver
- Administrator
- Peer PC
Connections 12
- RDMA application → NDv2 interfaces: uses
README.md - NDv2 interfaces → USB4 provider: dispatches verbs
README.md - Provider entry point → USB4 provider: creates provider
src/ndprov/dllmain.cpp - USB4 provider → USB4 P2P RDMA driver: forwards operations
README.md - RDMA IOCTL definitions → USB4 provider: defines requests
- Provider helper library → Provider catalog: finds providers
README.md - Provider helper library → Address and adapter selection: selects adapter
src/ndutil/ndfrmwrk.cpp - Address and adapter selection → Address helpers: uses address data
src/ndutil/ndfrmwrk.cpp - Administrator → Catalog installer: installs provider
README.md - Catalog installer → Provider catalog: registers DLL
README.md - Example tools → RDMA application: exercises API
README.md - USB4 P2P RDMA driver → Peer PC: transfers data
README.md