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

Go to the source code of this file.

Functions

 LIST_HEAD (rxrpc_calls)
 
 DEFINE_RWLOCK (rxrpc_call_lock)
 
struct rxrpc_callrxrpc_get_client_call (struct rxrpc_sock *rx, struct rxrpc_transport *trans, struct rxrpc_conn_bundle *bundle, unsigned long user_call_ID, int create, gfp_t gfp)
 
struct rxrpc_callrxrpc_incoming_call (struct rxrpc_sock *rx, struct rxrpc_connection *conn, struct rxrpc_header *hdr, gfp_t gfp)
 
struct rxrpc_callrxrpc_find_server_call (struct rxrpc_sock *rx, unsigned long user_call_ID)
 
void rxrpc_release_call (struct rxrpc_call *call)
 
void rxrpc_release_calls_on_socket (struct rxrpc_sock *rx)
 
void __rxrpc_put_call (struct rxrpc_call *call)
 
void __exit rxrpc_destroy_all_calls (void)
 

Variables

const char *const rxrpc_call_states []
 
struct kmem_cacherxrpc_call_jar
 

Function Documentation

void __rxrpc_put_call ( struct rxrpc_call call)

Definition at line 617 of file ar-call.c.

DEFINE_RWLOCK ( rxrpc_call_lock  )
LIST_HEAD ( rxrpc_calls  )
void __exit rxrpc_destroy_all_calls ( void  )

Definition at line 722 of file ar-call.c.

struct rxrpc_call* rxrpc_find_server_call ( struct rxrpc_sock rx,
unsigned long  user_call_ID 
)
read

Definition at line 380 of file ar-call.c.

struct rxrpc_call* rxrpc_get_client_call ( struct rxrpc_sock rx,
struct rxrpc_transport trans,
struct rxrpc_conn_bundle bundle,
unsigned long  user_call_ID,
int  create,
gfp_t  gfp 
)
read

Definition at line 146 of file ar-call.c.

struct rxrpc_call* rxrpc_incoming_call ( struct rxrpc_sock rx,
struct rxrpc_connection conn,
struct rxrpc_header hdr,
gfp_t  gfp 
)
read

Definition at line 246 of file ar-call.c.

void rxrpc_release_call ( struct rxrpc_call call)

Definition at line 419 of file ar-call.c.

void rxrpc_release_calls_on_socket ( struct rxrpc_sock rx)

Definition at line 586 of file ar-call.c.

Variable Documentation

struct kmem_cache* rxrpc_call_jar

Definition at line 38 of file ar-call.c.

const char* const rxrpc_call_states[]
Initial value:
= {
[RXRPC_CALL_CLIENT_SEND_REQUEST] = "ClSndReq",
[RXRPC_CALL_CLIENT_AWAIT_REPLY] = "ClAwtRpl",
[RXRPC_CALL_CLIENT_RECV_REPLY] = "ClRcvRpl",
[RXRPC_CALL_CLIENT_FINAL_ACK] = "ClFnlACK",
[RXRPC_CALL_SERVER_SECURING] = "SvSecure",
[RXRPC_CALL_SERVER_ACCEPTING] = "SvAccept",
[RXRPC_CALL_SERVER_RECV_REQUEST] = "SvRcvReq",
[RXRPC_CALL_SERVER_ACK_REQUEST] = "SvAckReq",
[RXRPC_CALL_SERVER_SEND_REPLY] = "SvSndRpl",
[RXRPC_CALL_SERVER_AWAIT_ACK] = "SvAwtACK",
[RXRPC_CALL_COMPLETE] = "Complete",
[RXRPC_CALL_SERVER_BUSY] = "SvBusy ",
[RXRPC_CALL_REMOTELY_ABORTED] = "RmtAbort",
[RXRPC_CALL_LOCALLY_ABORTED] = "LocAbort",
[RXRPC_CALL_NETWORK_ERROR] = "NetError",
[RXRPC_CALL_DEAD] = "Dead ",
}

Definition at line 19 of file ar-call.c.