uipc_mbuf.c (288990) | uipc_mbuf.c (289276) |
---|---|
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 288990 2015-10-07 12:40:00Z glebius $"); | 33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 289276 2015-10-14 00:35:37Z hiren $"); |
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> --- 348 unchanged lines hidden (view full) --- 390 if (freembuf) 391 uma_zfree(zone_mbuf, m); 392} 393 394/* 395 * Attach the cluster from *m to *n, set up m_ext in *n 396 * and bump the refcount of the cluster. 397 */ | 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> --- 348 unchanged lines hidden (view full) --- 390 if (freembuf) 391 uma_zfree(zone_mbuf, m); 392} 393 394/* 395 * Attach the cluster from *m to *n, set up m_ext in *n 396 * and bump the refcount of the cluster. 397 */ |
398static void | 398void |
399mb_dupcl(struct mbuf *n, const struct mbuf *m) 400{ 401 402 KASSERT(m->m_flags & M_EXT, ("%s: M_EXT not set on %p", __func__, m)); 403 KASSERT(!(n->m_flags & M_EXT), ("%s: M_EXT set on %p", __func__, n)); 404 405 switch (m->m_ext.ext_type) { 406 case EXT_SFBUF: --- 1655 unchanged lines hidden --- | 399mb_dupcl(struct mbuf *n, const struct mbuf *m) 400{ 401 402 KASSERT(m->m_flags & M_EXT, ("%s: M_EXT not set on %p", __func__, m)); 403 KASSERT(!(n->m_flags & M_EXT), ("%s: M_EXT set on %p", __func__, n)); 404 405 switch (m->m_ext.ext_type) { 406 case EXT_SFBUF: --- 1655 unchanged lines hidden --- |