aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-14 15:39:58 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-02-01 17:01:24 -0500
commitd2f7e79e3bad31b3d52c405085b9e01e5f6c01e0 (patch)
treea7247bf6849ecd2df43fcceca1f296c88af9866e /net/sunrpc/svc.c
parentd801b861681116ea23a7fb87a70bf463d29c8b9c (diff)
SUNRPC: Move exported symbol definitions after function declaration part 2
Do it for the server code... Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r--net/sunrpc/svc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index b76963d52657..7537af7c4a76 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -433,6 +433,7 @@ svc_create(struct svc_program *prog, unsigned int bufsize,
433{ 433{
434 return __svc_create(prog, bufsize, /*npools*/1, shutdown); 434 return __svc_create(prog, bufsize, /*npools*/1, shutdown);
435} 435}
436EXPORT_SYMBOL(svc_create);
436 437
437struct svc_serv * 438struct svc_serv *
438svc_create_pooled(struct svc_program *prog, unsigned int bufsize, 439svc_create_pooled(struct svc_program *prog, unsigned int bufsize,
@@ -452,6 +453,7 @@ svc_create_pooled(struct svc_program *prog, unsigned int bufsize,
452 453
453 return serv; 454 return serv;
454} 455}
456EXPORT_SYMBOL(svc_create_pooled);
455 457
456/* 458/*
457 * Destroy an RPC service. Should be called with the BKL held 459 * Destroy an RPC service. Should be called with the BKL held
@@ -493,6 +495,7 @@ svc_destroy(struct svc_serv *serv)
493 kfree(serv->sv_pools); 495 kfree(serv->sv_pools);
494 kfree(serv); 496 kfree(serv);
495} 497}
498EXPORT_SYMBOL(svc_destroy);
496 499
497/* 500/*
498 * Allocate an RPC server's buffer space. 501 * Allocate an RPC server's buffer space.
@@ -617,6 +620,7 @@ svc_create_thread(svc_thread_fn func, struct svc_serv *serv)
617{ 620{
618 return __svc_create_thread(func, serv, &serv->sv_pools[0]); 621 return __svc_create_thread(func, serv, &serv->sv_pools[0]);
619} 622}
623EXPORT_SYMBOL(svc_create_thread);
620 624
621/* 625/*
622 * Choose a pool in which to create a new thread, for svc_set_num_threads 626 * Choose a pool in which to create a new thread, for svc_set_num_threads
@@ -720,6 +724,7 @@ svc_set_num_threads(struct svc_serv *serv, struct svc_pool *pool, int nrservs)
720 724
721 return error; 725 return error;
722} 726}
727EXPORT_SYMBOL(svc_set_num_threads);
723 728
724/* 729/*
725 * Called from a server thread as it's exiting. Caller must hold BKL. 730 * Called from a server thread as it's exiting. Caller must hold BKL.
@@ -746,6 +751,7 @@ svc_exit_thread(struct svc_rqst *rqstp)
746 if (serv) 751 if (serv)
747 svc_destroy(serv); 752 svc_destroy(serv);
748} 753}
754EXPORT_SYMBOL(svc_exit_thread);
749 755
750/* 756/*
751 * Register an RPC service with the local portmapper. 757 * Register an RPC service with the local portmapper.
@@ -1069,6 +1075,7 @@ err_bad:
1069 svc_putnl(resv, ntohl(rpc_stat)); 1075 svc_putnl(resv, ntohl(rpc_stat));
1070 goto sendit; 1076 goto sendit;
1071} 1077}
1078EXPORT_SYMBOL(svc_process);
1072 1079
1073/* 1080/*
1074 * Return (transport-specific) limit on the rpc payload. 1081 * Return (transport-specific) limit on the rpc payload.