FD.io VPP  v20.09-64-g4f7b92f0a
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, void *private_ctx)
 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 167 of file libmemif.h.

◆ memif_control_fd_update_t

typedef int() memif_control_fd_update_t(int fd, uint8_t events, void *private_ctx)

#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
private_ctx- libmemif main private context. Is NULL for libmemif main created by memif_init()

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). Private context is taken from libmemif_main, 'private_ctx' passed to memif_per_thread_init() or NULL in case of memif_init()

Definition at line 157 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 177 of file libmemif.h.