kern_descrip.c (136109) | kern_descrip.c (136682) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94 35 */ 36 37#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_descrip.c 136109 2004-10-04 06:45:48Z julian $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_descrip.c 136682 2004-10-18 22:19:43Z rwatson $"); |
39 40#include "opt_compat.h" 41 42#include <sys/param.h> 43#include <sys/limits.h> 44#include <sys/systm.h> 45#include <sys/syscallsubr.h> 46#include <sys/sysproto.h> --- 2011 unchanged lines hidden (view full) --- 2058 * Drop the reference count on the the socket and XXX release the SX lock in 2059 * the future. The last reference closes the socket. 2060 */ 2061void 2062fputsock(struct socket *so) 2063{ 2064 2065 NET_ASSERT_GIANT(); | 39 40#include "opt_compat.h" 41 42#include <sys/param.h> 43#include <sys/limits.h> 44#include <sys/systm.h> 45#include <sys/syscallsubr.h> 46#include <sys/sysproto.h> --- 2011 unchanged lines hidden (view full) --- 2058 * Drop the reference count on the the socket and XXX release the SX lock in 2059 * the future. The last reference closes the socket. 2060 */ 2061void 2062fputsock(struct socket *so) 2063{ 2064 2065 NET_ASSERT_GIANT(); |
2066 ACCEPT_LOCK(); |
|
2066 SOCK_LOCK(so); 2067 sorele(so); 2068} 2069 2070/* 2071 * Drop reference on struct file passed in, may call closef if the 2072 * reference hits zero. 2073 * Expects struct file locked, and will unlock it. --- 453 unchanged lines hidden --- | 2067 SOCK_LOCK(so); 2068 sorele(so); 2069} 2070 2071/* 2072 * Drop reference on struct file passed in, may call closef if the 2073 * reference hits zero. 2074 * Expects struct file locked, and will unlock it. --- 453 unchanged lines hidden --- |