Skip to contentSkip to conversation

SUNRPC: Split portmap unregister API into separate function

PATCH New Chuck Lever 1 participant 1 message Jan 8, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 SUNRPC: Split portmap unregister API into separate function

Registering and unregistering RPC services with the local portmapper are sufficiently different that splitting these makes sense. They will diverge a bit more as we add support for AF_INET6.

---

 include/linux/sunrpc/svc.h |    1 +
 net/sunrpc/svc.c           |   49 ++++++++++++++++++++++++++++++--------------
 2 files changed, 34 insertions(+), 16 deletions(-)
include/linux/sunrpc/svc.h +1 -0
index 8531a70..4f73a0d 100644
@@ -391,6 +391,7 @@ int		   svc_set_num_threads(struct svc_serv *, struct svc_pool *, int);
 void		   svc_destroy(struct svc_serv *);
 int		   svc_process(struct svc_rqst *);
 int		   svc_register(struct svc_serv *, int, unsigned short);
+void		   svc_unregister(struct svc_serv *serv);
 void		   svc_wake_up(struct svc_serv *);
 void		   svc_reserve(struct svc_rqst *rqstp, int space);
 struct svc_pool *  svc_pool_for_cpu(struct svc_serv *serv, int cpu);
net/sunrpc/svc.c +33 -16

83 lines not on this page · raw message