Skip to content

Commit

Permalink
SUNRPC: create stubs for xprtsock init and cleanup
Browse files Browse the repository at this point in the history
Over time we will want to add some specific init and cleanup logic for the
xprtsock implementation.  Add stub routines for initialization and exit
processing.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Dec 6, 2006
1 parent dd45647 commit 282b32e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/sunrpc/sunrpc_syms.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ EXPORT_SYMBOL(nlm_debug);
extern int register_rpc_pipefs(void);
extern void unregister_rpc_pipefs(void);
extern struct cache_detail ip_map_cache;
extern int init_socket_xprt(void);
extern void cleanup_socket_xprt(void);

static int __init
init_sunrpc(void)
Expand All @@ -155,13 +157,15 @@ init_sunrpc(void)
rpc_proc_init();
#endif
cache_register(&ip_map_cache);
init_socket_xprt();
out:
return err;
}

static void __exit
cleanup_sunrpc(void)
{
cleanup_socket_xprt();
unregister_rpc_pipefs();
rpc_destroy_mempool();
if (cache_unregister(&ip_map_cache))
Expand Down
18 changes: 18 additions & 0 deletions net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,3 +1502,21 @@ struct rpc_xprt *xs_setup_tcp(struct sockaddr *addr, size_t addrlen, struct rpc_

return xprt;
}

/**
* init_socket_xprt - stub
*
*/
int init_socket_xprt(void)
{
return 0;
}

/**
* cleanup_socket_xprt - stub
*
*/
void cleanup_socket_xprt(void)
{
return;
}

0 comments on commit 282b32e

Please sign in to comment.