svc.c (7e857dd14fe7f42f5b46af4904f84915215d8987) | svc.c (6b97c9f09a0184f0853280013297e288751ec76a) |
---|---|
1/* $NetBSD: svc.c,v 1.21 2000/07/06 03:10:35 christos Exp $ */ 2 3/* 4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 5 * unrestricted use provided that this legend is included on all tape 6 * media and as a part of the software program in whole or part. Users 7 * may copy or modify Sun RPC without charge, but are not authorized 8 * to license or distribute it to anyone else except as part of a product or --- 262 unchanged lines hidden (view full) --- 271/* 272 * Activate a transport handle. 273 */ 274void 275xprt_register(SVCXPRT *xprt) 276{ 277 SVCPOOL *pool = xprt->xp_pool; 278 | 1/* $NetBSD: svc.c,v 1.21 2000/07/06 03:10:35 christos Exp $ */ 2 3/* 4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 5 * unrestricted use provided that this legend is included on all tape 6 * media and as a part of the software program in whole or part. Users 7 * may copy or modify Sun RPC without charge, but are not authorized 8 * to license or distribute it to anyone else except as part of a product or --- 262 unchanged lines hidden (view full) --- 271/* 272 * Activate a transport handle. 273 */ 274void 275xprt_register(SVCXPRT *xprt) 276{ 277 SVCPOOL *pool = xprt->xp_pool; 278 |
279 SVC_ACQUIRE(xprt); |
|
279 mtx_lock(&pool->sp_lock); 280 xprt->xp_registered = TRUE; 281 xprt->xp_active = FALSE; 282 TAILQ_INSERT_TAIL(&pool->sp_xlist, xprt, xp_link); 283 mtx_unlock(&pool->sp_lock); 284} 285 286/* --- 1037 unchanged lines hidden --- | 280 mtx_lock(&pool->sp_lock); 281 xprt->xp_registered = TRUE; 282 xprt->xp_active = FALSE; 283 TAILQ_INSERT_TAIL(&pool->sp_xlist, xprt, xp_link); 284 mtx_unlock(&pool->sp_lock); 285} 286 287/* --- 1037 unchanged lines hidden --- |