Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
af_rxrpc.c File Reference
#include <linux/module.h>
#include <linux/net.h>
#include <linux/slab.h>
#include <linux/skbuff.h>
#include <linux/poll.h>
#include <linux/proc_fs.h>
#include <linux/key-type.h>
#include <net/net_namespace.h>
#include <net/sock.h>
#include <net/af_rxrpc.h>
#include "ar-internal.h"

Go to the source code of this file.

Functions

 MODULE_DESCRIPTION ("RxRPC network protocol")
 
 MODULE_AUTHOR ("Red Hat, Inc.")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_NETPROTO (PF_RXRPC)
 
 module_param_named (debug, rxrpc_debug, uint, S_IWUSR|S_IRUGO)
 
 MODULE_PARM_DESC (debug,"RxRPC debugging mask")
 
struct rxrpc_callrxrpc_kernel_begin_call (struct socket *sock, struct sockaddr_rxrpc *srx, struct key *key, unsigned long user_call_ID, gfp_t gfp)
 
 EXPORT_SYMBOL (rxrpc_kernel_begin_call)
 
void rxrpc_kernel_end_call (struct rxrpc_call *call)
 
 EXPORT_SYMBOL (rxrpc_kernel_end_call)
 
void rxrpc_kernel_intercept_rx_messages (struct socket *sock, rxrpc_interceptor_t interceptor)
 
 EXPORT_SYMBOL (rxrpc_kernel_intercept_rx_messages)
 
 module_init (af_rxrpc_init)
 
 module_exit (af_rxrpc_exit)
 

Variables

unsigned int rxrpc_debug
 
__be32 rxrpc_epoch
 
atomic_t rxrpc_debug_id
 
atomic_t rxrpc_n_skbs
 
struct workqueue_structrxrpc_workqueue
 

Function Documentation

EXPORT_SYMBOL ( rxrpc_kernel_begin_call  )
EXPORT_SYMBOL ( rxrpc_kernel_end_call  )
MODULE_ALIAS_NETPROTO ( PF_RXRPC  )
MODULE_AUTHOR ( "Red  Hat,
Inc."   
)
MODULE_DESCRIPTION ( "RxRPC network protocol )
module_exit ( af_rxrpc_exit  )
module_init ( af_rxrpc_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
rxrpc_debug  ,
uint  ,
S_IWUSR S_IRUGO 
)
MODULE_PARM_DESC ( debug  ,
"RxRPC debugging mask  
)
struct rxrpc_call* rxrpc_kernel_begin_call ( struct socket sock,
struct sockaddr_rxrpc srx,
struct key key,
unsigned long  user_call_ID,
gfp_t  gfp 
)
read

rxrpc_kernel_begin_call - Allow a kernel service to begin a call : The socket on which to make the call : The address of the peer to contact (defaults to socket setting) : The security context to use (defaults to socket setting) : The ID to use

Allow a kernel service to begin a call on the nominated socket. This just sets up all the internal tracking structures and allocates connection and call IDs as appropriate. The call to be used is returned.

The default socket destination address and security may be overridden by supplying and .

Definition at line 268 of file af_rxrpc.c.

void rxrpc_kernel_end_call ( struct rxrpc_call call)

rxrpc_kernel_end_call - Allow a kernel service to end a call it was using : The call to end

Allow a kernel service to end a call it was using. The call must be complete before this is called (the call should be aborted if necessary).

Definition at line 336 of file af_rxrpc.c.

void rxrpc_kernel_intercept_rx_messages ( struct socket sock,
rxrpc_interceptor_t  interceptor 
)

rxrpc_kernel_intercept_rx_messages - Intercept received RxRPC messages : The socket to intercept received messages on : The function to pass the messages to

Allow a kernel service to intercept messages heading for the Rx queue on an RxRPC socket. They get passed to the specified function instead. should free the socket buffers it is given. is called with the socket receive queue spinlock held and softirqs disabled - this ensures that the messages will be delivered in the right order.

Definition at line 356 of file af_rxrpc.c.

Variable Documentation

unsigned int rxrpc_debug

Definition at line 29 of file af_rxrpc.c.

atomic_t rxrpc_debug_id

Definition at line 42 of file af_rxrpc.c.

__be32 rxrpc_epoch

Definition at line 39 of file af_rxrpc.c.

atomic_t rxrpc_n_skbs

Definition at line 45 of file af_rxrpc.c.

struct workqueue_struct* rxrpc_workqueue

Definition at line 47 of file af_rxrpc.c.