Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
svc_xprt.h File Reference
#include <linux/sunrpc/svc.h>

Go to the source code of this file.

Data Structures

struct  svc_xprt_ops
 
struct  svc_xprt_class
 
struct  svc_xpt_user
 
struct  svc_xprt
 

Macros

#define XPT_BUSY   0 /* enqueued/receiving */
 
#define XPT_CONN   1 /* conn pending */
 
#define XPT_CLOSE   2 /* dead or dying */
 
#define XPT_DATA   3 /* data pending */
 
#define XPT_TEMP   4 /* connected transport */
 
#define XPT_DEAD   6 /* transport closed */
 
#define XPT_CHNGBUF   7 /* need to change snd/rcv buf sizes */
 
#define XPT_DEFERRED   8 /* deferred request pending */
 
#define XPT_OLD   9 /* used for xprt aging mark+sweep */
 
#define XPT_DETACHED   10 /* detached from tempsocks list */
 
#define XPT_LISTENER   11 /* listening endpoint */
 
#define XPT_CACHE_AUTH   12 /* cache auth info */
 

Functions

int svc_reg_xprt_class (struct svc_xprt_class *)
 
void svc_unreg_xprt_class (struct svc_xprt_class *)
 
void svc_xprt_init (struct net *, struct svc_xprt_class *, struct svc_xprt *, struct svc_serv *)
 
int svc_create_xprt (struct svc_serv *, const char *, struct net *, const int, const unsigned short, int)
 
void svc_xprt_enqueue (struct svc_xprt *xprt)
 
void svc_xprt_put (struct svc_xprt *xprt)
 
void svc_xprt_copy_addrs (struct svc_rqst *rqstp, struct svc_xprt *xprt)
 
void svc_close_xprt (struct svc_xprt *xprt)
 
int svc_port_is_privileged (struct sockaddr *sin)
 
int svc_print_xprts (char *buf, int maxlen)
 
struct svc_xprtsvc_find_xprt (struct svc_serv *serv, const char *xcl_name, struct net *net, const sa_family_t af, const unsigned short port)
 
int svc_xprt_names (struct svc_serv *serv, char *buf, const int buflen)
 
void svc_add_new_perm_xprt (struct svc_serv *serv, struct svc_xprt *xprt)
 

Macro Definition Documentation

#define XPT_BUSY   0 /* enqueued/receiving */

Definition at line 54 of file svc_xprt.h.

#define XPT_CACHE_AUTH   12 /* cache auth info */

Definition at line 65 of file svc_xprt.h.

#define XPT_CHNGBUF   7 /* need to change snd/rcv buf sizes */

Definition at line 60 of file svc_xprt.h.

#define XPT_CLOSE   2 /* dead or dying */

Definition at line 56 of file svc_xprt.h.

#define XPT_CONN   1 /* conn pending */

Definition at line 55 of file svc_xprt.h.

#define XPT_DATA   3 /* data pending */

Definition at line 57 of file svc_xprt.h.

#define XPT_DEAD   6 /* transport closed */

Definition at line 59 of file svc_xprt.h.

#define XPT_DEFERRED   8 /* deferred request pending */

Definition at line 61 of file svc_xprt.h.

#define XPT_DETACHED   10 /* detached from tempsocks list */

Definition at line 63 of file svc_xprt.h.

#define XPT_LISTENER   11 /* listening endpoint */

Definition at line 64 of file svc_xprt.h.

#define XPT_OLD   9 /* used for xprt aging mark+sweep */

Definition at line 62 of file svc_xprt.h.

#define XPT_TEMP   4 /* connected transport */

Definition at line 58 of file svc_xprt.h.

Function Documentation

void svc_add_new_perm_xprt ( struct svc_serv serv,
struct svc_xprt xprt 
)

Definition at line 231 of file svc_xprt.c.

void svc_close_xprt ( struct svc_xprt xprt)

Definition at line 941 of file svc_xprt.c.

int svc_create_xprt ( struct svc_serv ,
const char ,
struct net ,
const int  ,
const unsigned  short,
int   
)

Definition at line 240 of file svc_xprt.c.

struct svc_xprt* svc_find_xprt ( struct svc_serv serv,
const char xcl_name,
struct net net,
const sa_family_t  af,
const unsigned short  port 
)
read

svc_find_xprt - find an RPC transport instance : pointer to svc_serv to search : C string containing transport's class name : owner net pointer : Address family of transport's local address : transport's IP port number

Return the transport instance pointer for the endpoint accepting connections/peer traffic from the specified transport class, address family and port.

Specifying 0 for the address family or port is effectively a wild-card, and will result in matching the first transport in the service's list that has a matching class name.

Definition at line 1159 of file svc_xprt.c.

int svc_port_is_privileged ( struct sockaddr sin)

Definition at line 506 of file svc_xprt.c.

int svc_print_xprts ( char buf,
int  maxlen 
)

Definition at line 103 of file svc_xprt.c.

int svc_reg_xprt_class ( struct svc_xprt_class )

Definition at line 69 of file svc_xprt.c.

void svc_unreg_xprt_class ( struct svc_xprt_class )

Definition at line 91 of file svc_xprt.c.

void svc_xprt_copy_addrs ( struct svc_rqst rqstp,
struct svc_xprt xprt 
)

Definition at line 281 of file svc_xprt.c.

void svc_xprt_enqueue ( struct svc_xprt xprt)

Definition at line 341 of file svc_xprt.c.

void svc_xprt_init ( struct net ,
struct svc_xprt_class ,
struct svc_xprt ,
struct svc_serv  
)

Definition at line 151 of file svc_xprt.c.

int svc_xprt_names ( struct svc_serv serv,
char buf,
const int  buflen 
)

svc_xprt_names - format a buffer with a list of transport names : pointer to an RPC service : pointer to a buffer to be filled in : length of buffer to be filled in

Fills in with a string containing a list of transport names, each name terminated with '
'.

Returns positive length of the filled-in string on success; otherwise a negative errno value is returned if an error occurs.

Definition at line 1214 of file svc_xprt.c.

void svc_xprt_put ( struct svc_xprt xprt)

Definition at line 141 of file svc_xprt.c.