B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Enumerations | Functions
extensions.h File Reference

Onload extension API. More...

#include <sys/types.h>
#include <stdint.h>
+ Include dependency graph for extensions.h:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  onload_stat
 

Macros

#define ONLOAD_DONT_ACCELERATE   NULL
 
#define ONLOAD_MSG_WARM   0x400
 

Enumerations

enum  onload_fd_feature { ONLOAD_FD_FEAT_MSG_WARM }
 
enum  onload_spin_type {
  ONLOAD_SPIN_ALL, ONLOAD_SPIN_UDP_RECV, ONLOAD_SPIN_UDP_SEND, ONLOAD_SPIN_TCP_RECV,
  ONLOAD_SPIN_TCP_SEND, ONLOAD_SPIN_TCP_ACCEPT, ONLOAD_SPIN_PIPE_RECV, ONLOAD_SPIN_PIPE_SEND,
  ONLOAD_SPIN_SELECT, ONLOAD_SPIN_POLL, ONLOAD_SPIN_PKT_WAIT, ONLOAD_SPIN_EPOLL_WAIT,
  ONLOAD_SPIN_STACK_LOCK, ONLOAD_SPIN_SOCK_LOCK, ONLOAD_SPIN_MAX
}
 
enum  onload_stackname_scope {
  ONLOAD_SCOPE_NOCHANGE, ONLOAD_SCOPE_THREAD, ONLOAD_SCOPE_PROCESS, ONLOAD_SCOPE_USER,
  ONLOAD_SCOPE_GLOBAL
}
 
enum  onload_stackname_who { ONLOAD_THIS_THREAD, ONLOAD_ALL_THREADS }
 

Functions

int onload_fd_check_feature (int fd, enum onload_fd_feature feature)
 
int onload_fd_stat (int fd, struct onload_stat *stat)
 
int onload_is_present (void)
 
int onload_set_stackname (enum onload_stackname_who who, enum onload_stackname_scope scope, const char *stackname)
 
int onload_stack_opt_reset (void)
 
int onload_stack_opt_set_int (const char *opt, int64_t val)
 
int onload_stackname_restore (void)
 
int onload_stackname_save (void)
 
int onload_thread_set_spin (enum onload_spin_type type, int spin)
 

Detailed Description

Onload extension API.

<L5_PRIVATE l5_header="">

Author
kjm
Date
2010/12/20 (c) Solarflare Communications Ltd. </L5_PRIVATE>

Macro Definition Documentation

#define ONLOAD_DONT_ACCELERATE   NULL
#define ONLOAD_MSG_WARM   0x400

Enumeration Type Documentation

Enumerator
ONLOAD_FD_FEAT_MSG_WARM 
Enumerator
ONLOAD_SPIN_ALL 
ONLOAD_SPIN_UDP_RECV 
ONLOAD_SPIN_UDP_SEND 
ONLOAD_SPIN_TCP_RECV 
ONLOAD_SPIN_TCP_SEND 
ONLOAD_SPIN_TCP_ACCEPT 
ONLOAD_SPIN_PIPE_RECV 
ONLOAD_SPIN_PIPE_SEND 
ONLOAD_SPIN_SELECT 
ONLOAD_SPIN_POLL 
ONLOAD_SPIN_PKT_WAIT 
ONLOAD_SPIN_EPOLL_WAIT 
ONLOAD_SPIN_STACK_LOCK 
ONLOAD_SPIN_SOCK_LOCK 
ONLOAD_SPIN_MAX 
Enumerator
ONLOAD_SCOPE_NOCHANGE 
ONLOAD_SCOPE_THREAD 
ONLOAD_SCOPE_PROCESS 
ONLOAD_SCOPE_USER 
ONLOAD_SCOPE_GLOBAL 
Enumerator
ONLOAD_THIS_THREAD 
ONLOAD_ALL_THREADS 

Function Documentation

int onload_fd_check_feature ( int  fd,
enum onload_fd_feature  feature 
)
int onload_fd_stat ( int  fd,
struct onload_stat stat 
)
int onload_is_present ( void  )
int onload_set_stackname ( enum onload_stackname_who  who,
enum onload_stackname_scope  scope,
const char *  stackname 
)
int onload_stack_opt_reset ( void  )
int onload_stack_opt_set_int ( const char *  opt,
int64_t  val 
)
int onload_stackname_restore ( void  )
int onload_stackname_save ( void  )
int onload_thread_set_spin ( enum onload_spin_type  type,
int  spin 
)