FD.io VPP  v21.06-3-gbb25fbf28
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 occurred (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 169 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 159 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 occurred (callback function)

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

Called when event is received on interrupt fd.

Definition at line 179 of file libmemif.h.