X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Fulnds%2Fconnection.h;h=343ffa6c1cbe653feb4160fb70aab84e1a417faf;hp=6f572874a4ebd100a44038f52b6d74b037d87e04;hb=191061ee668400324f4505cf498f1ee2d57e4962;hpb=96ec6856f91f7f9031cfce4273c714d72cfe59ae diff --git a/lnet/ulnds/connection.h b/lnet/ulnds/connection.h index 6f57287..343ffa6 100644 --- a/lnet/ulnds/connection.h +++ b/lnet/ulnds/connection.h @@ -7,9 +7,11 @@ */ #include +#include typedef struct manager { table connections; + pthread_mutex_t conn_lock; /* protect connections table */ int bound; io_handler bound_handler; int (*handler)(void *, void *); @@ -25,7 +27,8 @@ typedef struct connection { manager m; } *connection; -connection force_tcp_connection(manager m, unsigned int ip, unsigned int short); +connection force_tcp_connection(manager m, unsigned int ip, unsigned int short, + procbridge pb); manager init_connections(unsigned short, int (*f)(void *, void *), void *); void remove_connection(void *arg); void shutdown_connections(manager m);