Linux Kernel
3.7.1
|
#include <linux/rxrpc.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | rxrpc_interceptor_t )(struct sock *, unsigned long, struct sk_buff *) |
Enumerations | |
enum | { RXRPC_SKB_MARK_DATA, RXRPC_SKB_MARK_FINAL_ACK, RXRPC_SKB_MARK_BUSY, RXRPC_SKB_MARK_REMOTE_ABORT, RXRPC_SKB_MARK_NET_ERROR, RXRPC_SKB_MARK_LOCAL_ERROR, RXRPC_SKB_MARK_NEW_CALL } |
Functions | |
void | rxrpc_kernel_intercept_rx_messages (struct socket *, rxrpc_interceptor_t) |
struct rxrpc_call * | rxrpc_kernel_begin_call (struct socket *, struct sockaddr_rxrpc *, struct key *, unsigned long, gfp_t) |
int | rxrpc_kernel_send_data (struct rxrpc_call *, struct msghdr *, size_t) |
void | rxrpc_kernel_abort_call (struct rxrpc_call *, u32) |
void | rxrpc_kernel_end_call (struct rxrpc_call *) |
bool | rxrpc_kernel_is_data_last (struct sk_buff *) |
u32 | rxrpc_kernel_get_abort_code (struct sk_buff *) |
int | rxrpc_kernel_get_error_number (struct sk_buff *) |
void | rxrpc_kernel_data_delivered (struct sk_buff *) |
void | rxrpc_kernel_free_skb (struct sk_buff *) |
struct rxrpc_call * | rxrpc_kernel_accept_call (struct socket *, unsigned long) |
int | rxrpc_kernel_reject_call (struct socket *) |
Definition at line 32 of file af_rxrpc.h.
anonymous enum |
RXRPC_SKB_MARK_DATA | |
RXRPC_SKB_MARK_FINAL_ACK | |
RXRPC_SKB_MARK_BUSY | |
RXRPC_SKB_MARK_REMOTE_ABORT | |
RXRPC_SKB_MARK_NET_ERROR | |
RXRPC_SKB_MARK_LOCAL_ERROR | |
RXRPC_SKB_MARK_NEW_CALL |
Definition at line 22 of file af_rxrpc.h.
void rxrpc_kernel_abort_call | ( | struct rxrpc_call * | call, |
u32 | abort_code | ||
) |
rxrpc_kernel_abort_call - Allow a kernel service to abort a call : The call to be aborted : The abort code to stick into the ABORT packet
Allow a kernel service to abort a call, if it's still in an abortable state.
Definition at line 252 of file ar-output.c.
|
read |
|
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.
rxrpc_kernel_data_delivered - Record delivery of data message : Message holding data
Record the delivery of a data message. This permits RxRPC to keep its tracking correct. The socket buffer will be deleted.
Definition at line 377 of file ar-recvmsg.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.
rxrpc_kernel_free_skb - Free an RxRPC socket buffer : The socket buffer to be freed
Let RxRPC free its own socket buffer, permitting it to maintain debug accounting.
Definition at line 127 of file ar-skbuff.c.
rxrpc_kernel_get_abort_code - Get the abort code from an RxRPC abort message : Message indicating an abort
Get the abort code from an RxRPC abort message.
Definition at line 415 of file ar-recvmsg.c.
rxrpc_kernel_get_error - Get the error number from an RxRPC error message : Message indicating an error
Get the error number from an RxRPC error message.
Definition at line 432 of file ar-recvmsg.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.
rxrpc_kernel_is_data_last - Determine if data message is last one : Message holding data
Determine if data message is last one for the parent call.
Definition at line 398 of file ar-recvmsg.c.
rxrpc_kernel_reject_call - Allow a kernel service to reject an incoming call : The socket on which the impending call is waiting
Allow a kernel service to reject an incoming call with a BUSY message, assuming the incoming call is still valid.
Definition at line 500 of file ar-accept.c.
rxrpc_kernel_send_data - Allow a kernel service to send data on a call : The call to send data through : The data to send : The amount of data to send
Allow a kernel service to send data on a call. The call must be in an state appropriate to sending data. No control data should be supplied in , nor should an address be supplied. MSG_MORE should be flagged if there's more data to come, otherwise this data will end the transmission phase.
Definition at line 210 of file ar-output.c.