FD.io VPP  v19.04-6-g6f05f72
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

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 150 of file libmemif.h.

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 141 of file libmemif.h.

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 160 of file libmemif.h.