Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
svcsock.c File Reference
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/fcntl.h>
#include <linux/net.h>
#include <linux/in.h>
#include <linux/inet.h>
#include <linux/udp.h>
#include <linux/tcp.h>
#include <linux/unistd.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/file.h>
#include <linux/freezer.h>
#include <net/sock.h>
#include <net/checksum.h>
#include <net/ip.h>
#include <net/ipv6.h>
#include <net/tcp.h>
#include <net/tcp_states.h>
#include <asm/uaccess.h>
#include <asm/ioctls.h>
#include <trace/events/skb.h>
#include <linux/sunrpc/types.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/xdr.h>
#include <linux/sunrpc/msg_prot.h>
#include <linux/sunrpc/svcsock.h>
#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/xprt.h>
#include "sunrpc.h"

Go to the source code of this file.

Data Structures

union  svc_pktinfo_u
 

Macros

#define RPCDBG_FACILITY   RPCDBG_SVCXPRT
 
#define SVC_PKTINFO_SPACE   CMSG_SPACE(sizeof(union svc_pktinfo_u))
 

Functions

int svc_send_common (struct socket *sock, struct xdr_buf *xdr, struct page *headpage, unsigned long headoffset, struct page *tailpage, unsigned long tailoffset)
 
void svc_init_xprt_sock (void)
 
void svc_cleanup_xprt_sock (void)
 
void svc_sock_update_bufs (struct svc_serv *serv)
 
 EXPORT_SYMBOL_GPL (svc_sock_update_bufs)
 
int svc_addsock (struct svc_serv *serv, const int fd, char *name_return, const size_t len)
 
 EXPORT_SYMBOL_GPL (svc_addsock)
 

Macro Definition Documentation

#define RPCDBG_FACILITY   RPCDBG_SVCXPRT

Definition at line 58 of file svcsock.c.

#define SVC_PKTINFO_SPACE   CMSG_SPACE(sizeof(union svc_pktinfo_u))

Definition at line 134 of file svcsock.c.

Function Documentation

EXPORT_SYMBOL_GPL ( svc_sock_update_bufs  )
EXPORT_SYMBOL_GPL ( svc_addsock  )
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_init_xprt_sock ( void  )

Definition at line 1270 of file svcsock.c.

int svc_send_common ( struct socket sock,
struct xdr_buf *  xdr,
struct page headpage,
unsigned long  headoffset,
struct page tailpage,
unsigned long  tailoffset 
)

Definition at line 171 of file svcsock.c.

void svc_sock_update_bufs ( struct svc_serv serv)

Definition at line 1314 of file svcsock.c.