Skip to content

Commit 02cea33

Browse files
committed
SUNRPC: Fix comments for transport class registration
The preceding block comment before svc_register_xprt_class() is not related to that function. While we're here, add proper documenting comments for these two publicly-visible functions. Reviewed-by: Jeff Layton <jlayton@kernel.org> Acked-by: Tom Talpey <tom@talpey.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent b55c633 commit 02cea33

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

net/sunrpc/svc_xprt.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ static LIST_HEAD(svc_xprt_class_list);
7474
* that no other thread will be using the transport or will
7575
* try to set XPT_DEAD.
7676
*/
77+
78+
/**
79+
* svc_reg_xprt_class - Register a server-side RPC transport class
80+
* @xcl: New transport class to be registered
81+
*
82+
* Returns zero on success; otherwise a negative errno is returned.
83+
*/
7784
int svc_reg_xprt_class(struct svc_xprt_class *xcl)
7885
{
7986
struct svc_xprt_class *cl;
@@ -96,6 +103,11 @@ int svc_reg_xprt_class(struct svc_xprt_class *xcl)
96103
}
97104
EXPORT_SYMBOL_GPL(svc_reg_xprt_class);
98105

106+
/**
107+
* svc_unreg_xprt_class - Unregister a server-side RPC transport class
108+
* @xcl: Transport class to be unregistered
109+
*
110+
*/
99111
void svc_unreg_xprt_class(struct svc_xprt_class *xcl)
100112
{
101113
dprintk("svc: Removing svc transport class '%s'\n", xcl->xcl_name);

0 commit comments

Comments
 (0)