Definition of the minidriver interface. More...
#include <stdint.h>#include <nm_public.h>#include <Padico/Puk.h>#include <sys/uio.h>#include <string.h>

Go to the source code of this file.
Data Structures | |
| struct | nm_drv_profile_s |
| Performance information for driver. More... | |
| struct | nm_minidriver_capabilities_s |
| Static driver capabilities. More... | |
| struct | nm_minidriver_hints_s |
| some hints to help drivers tune themselves More... | |
| struct | nm_minidriver_properties_s |
| struct | nm_pkt_s |
| a packet to submit to a driver More... | |
| struct | nm_minidriver_iface_s |
| Interface driver for the 'NewMad_minidriver' component interface. More... | |
Macros | |
| #define | NM_RDV_DATA_SIZE (4 * sizeof(uint64_t)) |
| size of rdv data packet with RTR, in bytes | |
Functions | |
| static void | nm_pkt_init (struct nm_pkt_s *p_pkt) |
| PUK_IFACE_TYPE (NewMad_minidriver, struct nm_minidriver_iface_s) | |
| static void | nm_minidriver_properties_init (struct nm_minidriver_properties_s *p_props) |
| initialize all properties to 0 | |
| static void | nm_minidriver_properties_normalize (struct nm_minidriver_properties_s *p_props) |
| ensure properties are in canonical form | |
Detailed Description
Definition of the minidriver interface.
Definition in file nm_minidriver.h.
Macro Definition Documentation
◆ NM_RDV_DATA_SIZE
| #define NM_RDV_DATA_SIZE (4 * sizeof(uint64_t)) |
size of rdv data packet with RTR, in bytes
Definition at line 274 of file nm_minidriver.h.
Function Documentation
◆ nm_minidriver_properties_init()
|
inlinestatic |
initialize all properties to 0
Definition at line 448 of file nm_minidriver.h.
Referenced by nm_minidriver_getprops().
◆ nm_minidriver_properties_normalize()
|
inlinestatic |
ensure properties are in canonical form
Definition at line 453 of file nm_minidriver.h.
References assert(), nm_minidriver_properties_s::capabilities, nm_minidriver_capabilities_s::max_iovecs, nm_minidriver_capabilities_s::max_msg_size, nm_minidriver_capabilities_s::max_pkt_recvs, nm_minidriver_capabilities_s::max_pkt_sends, NM_LEN_MAX, and nm_minidriver_capabilities_s::supports_iovec.
Referenced by nm_minidriver_getprops().

◆ nm_pkt_init()
|
inlinestatic |
Definition at line 322 of file nm_minidriver.h.
Referenced by nm_minidriver_recv_pkt_build(), and nm_minidriver_send_pkt_build().
◆ PUK_IFACE_TYPE()
| PUK_IFACE_TYPE | ( | NewMad_minidriver | , |
| struct nm_minidriver_iface_s | |||
| ) |