ttynull.c (69851e4ab8feeb369119a44ddca430c0ee15f0d8) ttynull.c (95713967ba52389f7cea75704d0cf048080ec218)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 Axis Communications AB
4 *
5 * Based on ttyprintk.c:
6 * Copyright (C) 2010 Samo Pogacnik
7 */
8

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

24 tty_port_close(&ttynull_port, tty, filp);
25}
26
27static void ttynull_hangup(struct tty_struct *tty)
28{
29 tty_port_hangup(&ttynull_port);
30}
31
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 Axis Communications AB
4 *
5 * Based on ttyprintk.c:
6 * Copyright (C) 2010 Samo Pogacnik
7 */
8

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

24 tty_port_close(&ttynull_port, tty, filp);
25}
26
27static void ttynull_hangup(struct tty_struct *tty)
28{
29 tty_port_hangup(&ttynull_port);
30}
31
32static int ttynull_write(struct tty_struct *tty, const u8 *buf, int count)
32static ssize_t ttynull_write(struct tty_struct *tty, const u8 *buf,
33 size_t count)
33{
34 return count;
35}
36
37static unsigned int ttynull_write_room(struct tty_struct *tty)
38{
39 return 65536;
40}

--- 68 unchanged lines hidden ---
34{
35 return count;
36}
37
38static unsigned int ttynull_write_room(struct tty_struct *tty)
39{
40 return 65536;
41}

--- 68 unchanged lines hidden ---