linux/drivers/tty/ttynull.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2019 Axis Communications AB
 *
 * Based on ttyprintk.c:
 *  Copyright (C) 2010 Samo Pogacnik
 */

#include <linux/console.h>
#include <linux/module.h>
#include <linux/tty.h>

static const struct tty_port_operations ttynull_port_ops;
static struct tty_driver *ttynull_driver;
static struct tty_port ttynull_port;

static int ttynull_open(struct tty_struct *tty, struct file *filp)
{}

static void ttynull_close(struct tty_struct *tty, struct file *filp)
{}

static void ttynull_hangup(struct tty_struct *tty)
{}

static ssize_t ttynull_write(struct tty_struct *tty, const u8 *buf,
			     size_t count)
{}

static unsigned int ttynull_write_room(struct tty_struct *tty)
{}

static const struct tty_operations ttynull_ops =;

static struct tty_driver *ttynull_device(struct console *c, int *index)
{}

static struct console ttynull_console =;

static int __init ttynull_init(void)
{}

static void __exit ttynull_exit(void)
{}

module_init();
module_exit(ttynull_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();