Deleted Added
full compact
tty_outq.c (203611) tty_outq.c (223575)
1/*-
2 * Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Portions of this software were developed under sponsorship from Snow
6 * B.V., the Netherlands.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Portions of this software were developed under sponsorship from Snow
6 * B.V., the Netherlands.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/kern/tty_outq.c 203611 2010-02-07 15:42:15Z ed $");
31__FBSDID("$FreeBSD: head/sys/kern/tty_outq.c 223575 2011-06-26 18:26:20Z ed $");
32
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/queue.h>
37#include <sys/systm.h>
38#include <sys/tty.h>
39#include <sys/uio.h>

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

114 TTYOUTQ_INSERT_TAIL(to, tob);
115 }
116}
117
118void
119ttyoutq_free(struct ttyoutq *to)
120{
121 struct ttyoutq_block *tob;
32
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/queue.h>
37#include <sys/systm.h>
38#include <sys/tty.h>
39#include <sys/uio.h>

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

114 TTYOUTQ_INSERT_TAIL(to, tob);
115 }
116}
117
118void
119ttyoutq_free(struct ttyoutq *to)
120{
121 struct ttyoutq_block *tob;
122
122
123 ttyoutq_flush(to);
124 to->to_quota = 0;
125
126 while ((tob = to->to_firstblock) != NULL) {
127 TTYOUTQ_REMOVE_HEAD(to);
128 uma_zfree(ttyoutq_zone, tob);
129 }
130

--- 209 unchanged lines hidden ---
123 ttyoutq_flush(to);
124 to->to_quota = 0;
125
126 while ((tob = to->to_firstblock) != NULL) {
127 TTYOUTQ_REMOVE_HEAD(to);
128 uma_zfree(ttyoutq_zone, tob);
129 }
130

--- 209 unchanged lines hidden ---