FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
Callback functions definitions
+ Collaboration diagram for Callback functions definitions:

Typedefs

typedef int() memif_control_fd_update_t(int fd, uint8_t events)
 Memif control file descriptor update (callback function) More...
 
typedef int() memif_connection_update_t(memif_conn_handle_t conn, void *private_ctx)
 Memif connection status update (callback function) More...
 
typedef int() memif_interrupt_t(memif_conn_handle_t conn, void *private_ctx, uint16_t qid)
 Memif interrupt occured (callback function) More...
 

Detailed Description

Typedef Documentation

◆ memif_connection_update_t

typedef int() memif_connection_update_t(memif_conn_handle_t conn, void *private_ctx)

#include <extras/libmemif/src/libmemif.h>

Memif connection status update (callback function)

Parameters
conn- memif connection handle
private_ctx- private context

Informs user about connection status connected/disconnected. On connected -> start watching for events on interrupt fd (optional).

Definition at line 149 of file libmemif.h.

◆ memif_control_fd_update_t

typedef int() memif_control_fd_update_t(int fd, uint8_t events)

#include <extras/libmemif/src/libmemif.h>

Memif control file descriptor update (callback function)

Parameters
fd- new file descriptor to watch
events- event type(s) to watch for

This callback is called when there is new fd to watch for events on or if fd is about to be closed (user mey want to stop watching for events on this fd).

Definition at line 140 of file libmemif.h.

◆ memif_interrupt_t

typedef int() memif_interrupt_t(memif_conn_handle_t conn, void *private_ctx, uint16_t qid)

#include <extras/libmemif/src/libmemif.h>

Memif interrupt occured (callback function)

Parameters
conn- memif connection handle
private_ctx- private context
qid- queue id on which interrupt occured

Called when event is received on interrupt fd.

Definition at line 159 of file libmemif.h.