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

Go to the source code of this file.

Data Structures

struct  svc_sock


#define SVC_SOCK_DEFAULTS   (0U)
#define SVC_SOCK_ANONYMOUS   (1U << 0) /* don't register with pmap */
#define SVC_SOCK_TEMPORARY   (1U << 1) /* flag socket as temporary */


void svc_close_net (struct svc_serv *, struct net *)
int svc_recv (struct svc_rqst *, long)
int svc_send (struct svc_rqst *)
void svc_drop (struct svc_rqst *)
void svc_sock_update_bufs (struct svc_serv *serv)
int svc_addsock (struct svc_serv *serv, const int fd, char *name_return, const size_t len)
void svc_init_xprt_sock (void)
void svc_cleanup_xprt_sock (void)
struct svc_xprtsvc_sock_create (struct svc_serv *serv, int prot)
void svc_sock_destroy (struct svc_xprt *)

Macro Definition Documentation

#define SVC_SOCK_ANONYMOUS   (1U << 0) /* don't register with pmap */

Definition at line 53 of file svcsock.h.

#define SVC_SOCK_DEFAULTS   (0U)

Definition at line 52 of file svcsock.h.

#define SVC_SOCK_TEMPORARY   (1U << 1) /* flag socket as temporary */

Definition at line 54 of file svcsock.h.

Function Documentation

int svc_addsock ( struct svc_serv serv,
const int  fd,
char name_return,
const size_t  len 

svc_addsock - add a listener socket to an RPC service : pointer to RPC service to which to add a new listener : file descriptor of the new listener : pointer to buffer to fill in with name of listener : size of the buffer

Fills in socket name and returns positive length of name if successful. Name is terminated with '
'. On error, returns a negative errno value.

Definition at line 1396 of file svcsock.c.

void svc_cleanup_xprt_sock ( void  )

Definition at line 1277 of file svcsock.c.

void svc_close_net ( struct svc_serv ,
struct net  

Definition at line 1009 of file svc_xprt.c.

void svc_drop ( struct svc_rqst )

Definition at line 800 of file svc_xprt.c.

void svc_init_xprt_sock ( void  )

Definition at line 1270 of file svcsock.c.

int svc_recv ( struct svc_rqst ,

Definition at line 745 of file svc_xprt.c.

int svc_send ( struct svc_rqst )

Definition at line 810 of file svc_xprt.c.

struct svc_xprt* svc_sock_create ( struct svc_serv serv,
int  prot 
void svc_sock_destroy ( struct svc_xprt )
void svc_sock_update_bufs ( struct svc_serv serv)

Definition at line 1314 of file svcsock.c.