subr_terminal.c (268037) | subr_terminal.c (271769) |
---|---|
1/*- 2 * Copyright (c) 2009 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 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) 2009 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 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: stable/10/sys/kern/subr_terminal.c 268037 2014-06-30 09:59:23Z marius $"); | 31__FBSDID("$FreeBSD: stable/10/sys/kern/subr_terminal.c 271769 2014-09-18 14:38:18Z dumbbell $"); |
32 33#include <sys/param.h> 34#include <sys/cons.h> 35#include <sys/consio.h> 36#include <sys/kernel.h> 37#include <sys/lock.h> 38#include <sys/malloc.h> 39#include <sys/mutex.h> --- 431 unchanged lines hidden (view full) --- 471 472 /* Attach terminal as console. */ 473 cnadd(cp); 474} 475 476static void 477termcn_cngrab(struct consdev *cp) 478{ | 32 33#include <sys/param.h> 34#include <sys/cons.h> 35#include <sys/consio.h> 36#include <sys/kernel.h> 37#include <sys/lock.h> 38#include <sys/malloc.h> 39#include <sys/mutex.h> --- 431 unchanged lines hidden (view full) --- 471 472 /* Attach terminal as console. */ 473 cnadd(cp); 474} 475 476static void 477termcn_cngrab(struct consdev *cp) 478{ |
479 struct terminal *tm = cp->cn_arg; |
|
479 | 480 |
481 tm->tm_class->tc_cngrab(tm); |
|
480} 481 482static void 483termcn_cnungrab(struct consdev *cp) 484{ | 482} 483 484static void 485termcn_cnungrab(struct consdev *cp) 486{ |
487 struct terminal *tm = cp->cn_arg; |
|
485 | 488 |
489 tm->tm_class->tc_cnungrab(tm); |
|
486} 487 488static void 489termcn_cnprobe(struct consdev *cp) 490{ 491 struct terminal *tm = cp->cn_arg; 492 493 if (tm == NULL) { --- 127 unchanged lines hidden --- | 490} 491 492static void 493termcn_cnprobe(struct consdev *cp) 494{ 495 struct terminal *tm = cp->cn_arg; 496 497 if (tm == NULL) { --- 127 unchanged lines hidden --- |