uipc_mbuf.c (297298) | uipc_mbuf.c (298069) |
---|---|
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 297298 2016-03-26 23:39:53Z np $"); | 33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 298069 2016-04-15 16:10:11Z pfg $"); |
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> --- 412 unchanged lines hidden (view full) --- 454 while (off > 0) { 455 KASSERT(m != NULL, ("m_copym, offset > size of mbuf chain")); 456 if (off < m->m_len) 457 break; 458 off -= m->m_len; 459 m = m->m_next; 460 } 461 np = ⊤ | 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> --- 412 unchanged lines hidden (view full) --- 454 while (off > 0) { 455 KASSERT(m != NULL, ("m_copym, offset > size of mbuf chain")); 456 if (off < m->m_len) 457 break; 458 off -= m->m_len; 459 m = m->m_next; 460 } 461 np = ⊤ |
462 top = 0; | 462 top = NULL; |
463 while (len > 0) { 464 if (m == NULL) { 465 KASSERT(len == M_COPYALL, 466 ("m_copym, length > size of mbuf chain")); 467 break; 468 } 469 if (copyhdr) 470 n = m_gethdr(wait, m->m_type); --- 1399 unchanged lines hidden --- | 463 while (len > 0) { 464 if (m == NULL) { 465 KASSERT(len == M_COPYALL, 466 ("m_copym, length > size of mbuf chain")); 467 break; 468 } 469 if (copyhdr) 470 n = m_gethdr(wait, m->m_type); --- 1399 unchanged lines hidden --- |