Deleted Added
full compact
uipc_mbuf.c (210225) uipc_mbuf.c (210226)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 210225 2010-07-18 20:23:10Z trasz $");
33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 210226 2010-07-18 20:57:53Z trasz $");
34
35#include "opt_param.h"
36#include "opt_mbuf_stress_test.h"
37#include "opt_mbuf_profiling.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>

--- 114 unchanged lines hidden (view full) ---

156void
157m_freem(struct mbuf *mb)
158{
159
160 while (mb != NULL)
161 mb = m_free(mb);
162}
163
34
35#include "opt_param.h"
36#include "opt_mbuf_stress_test.h"
37#include "opt_mbuf_profiling.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>

--- 114 unchanged lines hidden (view full) ---

156void
157m_freem(struct mbuf *mb)
158{
159
160 while (mb != NULL)
161 mb = m_free(mb);
162}
163
164/*
164/*-
165 * Configure a provided mbuf to refer to the provided external storage
166 * buffer and setup a reference count for said buffer. If the setting
167 * up of the reference count fails, the M_EXT bit will not be set. If
168 * successfull, the M_EXT bit is set in the mbuf's flags.
169 *
170 * Arguments:
171 * mb The existing mbuf to which to attach the provided buffer.
172 * buf The address of the provided external storage buffer.

--- 1949 unchanged lines hidden ---
165 * Configure a provided mbuf to refer to the provided external storage
166 * buffer and setup a reference count for said buffer. If the setting
167 * up of the reference count fails, the M_EXT bit will not be set. If
168 * successfull, the M_EXT bit is set in the mbuf's flags.
169 *
170 * Arguments:
171 * mb The existing mbuf to which to attach the provided buffer.
172 * buf The address of the provided external storage buffer.

--- 1949 unchanged lines hidden ---