aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-08-30 07:00:48 -0400
committerDavid Howells <dhowells@redhat.com>2016-08-30 11:07:53 -0400
commit4de48af663d88d8c9a2550e60725f5a5c660970b (patch)
treea9c55856934f49068d5351e67b407d917d649966 /Documentation/networking
parentea82aaec9879e4df307ccbbf26491a8e0a52e4f1 (diff)
rxrpc: Pass struct socket * to more rxrpc kernel interface functions
Pass struct socket * to more rxrpc kernel interface functions. They should be starting from this rather than the socket pointer in the rxrpc_call struct if they need to access the socket. I have left: rxrpc_kernel_is_data_last() rxrpc_kernel_get_abort_code() rxrpc_kernel_get_error_number() rxrpc_kernel_free_skb() rxrpc_kernel_data_consumed() unmodified as they're all about to be removed (and, in any case, don't touch the socket). Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/rxrpc.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/Documentation/networking/rxrpc.txt b/Documentation/networking/rxrpc.txt
index dfe0b008df74..cfc8cb91452f 100644
--- a/Documentation/networking/rxrpc.txt
+++ b/Documentation/networking/rxrpc.txt
@@ -725,7 +725,8 @@ The kernel interface functions are as follows:
725 725
726 (*) End a client call. 726 (*) End a client call.
727 727
728 void rxrpc_kernel_end_call(struct rxrpc_call *call); 728 void rxrpc_kernel_end_call(struct socket *sock,
729 struct rxrpc_call *call);
729 730
730 This is used to end a previously begun call. The user_call_ID is expunged 731 This is used to end a previously begun call. The user_call_ID is expunged
731 from AF_RXRPC's knowledge and will not be seen again in association with 732 from AF_RXRPC's knowledge and will not be seen again in association with
@@ -733,7 +734,9 @@ The kernel interface functions are as follows:
733 734
734 (*) Send data through a call. 735 (*) Send data through a call.
735 736
736 int rxrpc_kernel_send_data(struct rxrpc_call *call, struct msghdr *msg, 737 int rxrpc_kernel_send_data(struct socket *sock,
738 struct rxrpc_call *call,
739 struct msghdr *msg,
737 size_t len); 740 size_t len);
738 741
739 This is used to supply either the request part of a client call or the 742 This is used to supply either the request part of a client call or the
@@ -747,7 +750,9 @@ The kernel interface functions are as follows:
747 750
748 (*) Abort a call. 751 (*) Abort a call.
749 752
750 void rxrpc_kernel_abort_call(struct rxrpc_call *call, u32 abort_code); 753 void rxrpc_kernel_abort_call(struct socket *sock,
754 struct rxrpc_call *call,
755 u32 abort_code);
751 756
752 This is used to abort a call if it's still in an abortable state. The 757 This is used to abort a call if it's still in an abortable state. The
753 abort code specified will be placed in the ABORT message sent. 758 abort code specified will be placed in the ABORT message sent.