^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * n_tracesink.c - Trace data router and sink path through tty space.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (C) Intel 2011
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * The trace sink uses the Linux line discipline framework to receive
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * trace data coming from the PTI source line discipline driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) * to a user-desired tty port, like USB.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * This is to provide a way to extract modem trace data on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * devices that do not have a PTI HW module, or just need modem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) * trace data to come out of a different HW output port.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) * This is part of a solution for the P1149.7, compact JTAG, standard.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #include <linux/ioctl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #include <linux/tty.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #include <linux/tty_ldisc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #include <linux/errno.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #include <linux/string.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #include <linux/bug.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #include "n_tracesink.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) * Other ldisc drivers use 65536 which basically means,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * 'I can always accept 64k' and flow control is off.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) * This number is deemed appropriate for this driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define RECEIVE_ROOM 65536
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define DRIVERNAME "n_tracesink"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) * there is a quirk with this ldisc is he can write data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) * to a tty from anyone calling his kernel API, which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) * meets customer requirements in the drivers/misc/pti.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) * project. So he needs to know when he can and cannot write when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) * the API is called. In theory, the API can be called
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) * after an init() but before a successful open() which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) * would crash the system if tty is not checked.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) static struct tty_struct *this_tty;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) static DEFINE_MUTEX(writelock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) * n_tracesink_open() - Called when a tty is opened by a SW entity.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) * @tty: terminal device to the ldisc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) * Return:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) * 0 for success,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) * -EFAULT = couldn't get a tty kref n_tracesink will sit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) * on top of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) * -EEXIST = open() called successfully once and it cannot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) * be called again.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) * Caveats: open() should only be successful the first time a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) * SW entity calls it.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) static int n_tracesink_open(struct tty_struct *tty)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) int retval = -EEXIST;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) mutex_lock(&writelock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) if (this_tty == NULL) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) this_tty = tty_kref_get(tty);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) if (this_tty == NULL) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) retval = -EFAULT;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) } else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) tty->disc_data = this_tty;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) tty_driver_flush_buffer(tty);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) retval = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) mutex_unlock(&writelock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) return retval;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) * n_tracesink_close() - close connection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) * @tty: terminal device to the ldisc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) * Called when a software entity wants to close a connection.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) static void n_tracesink_close(struct tty_struct *tty)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) mutex_lock(&writelock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) tty_driver_flush_buffer(tty);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) tty_kref_put(this_tty);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) this_tty = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) tty->disc_data = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) mutex_unlock(&writelock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) * n_tracesink_read() - read request from user space
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) * @tty: terminal device passed into the ldisc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) * @file: pointer to open file object.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) * @buf: pointer to the data buffer that gets eventually returned.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) * @nr: number of bytes of the data buffer that is returned.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) * function that allows read() functionality in userspace. By default if this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) * is not implemented it returns -EIO. This module is functioning like a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) * router via n_tracesink_receivebuf(), and there is no real requirement
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) * to implement this function. However, an error return value other than
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) * -EIO should be used just to show that there was an intent not to have
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) * this function implemented. Return value based on read() man pages.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) * Return:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) * -EINVAL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) static ssize_t n_tracesink_read(struct tty_struct *tty, struct file *file,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) unsigned char *buf, size_t nr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) void **cookie, unsigned long offset)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) return -EINVAL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) * n_tracesink_write() - Function that allows write() in userspace.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) * @tty: terminal device passed into the ldisc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) * @file: pointer to open file object.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) * @buf: pointer to the data buffer that gets eventually returned.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) * @nr: number of bytes of the data buffer that is returned.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) * By default if this is not implemented, it returns -EIO.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) * This should not be implemented, ever, because
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) * 1. this driver is functioning like a router via
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) * n_tracesink_receivebuf()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) * 2. No writes to HW will ever go through this line discpline driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) * However, an error return value other than -EIO should be used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) * just to show that there was an intent not to have this function
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) * implemented. Return value based on write() man pages.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) * Return:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) * -EINVAL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) static ssize_t n_tracesink_write(struct tty_struct *tty, struct file *file,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) const unsigned char *buf, size_t nr) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) return -EINVAL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) * n_tracesink_datadrain() - Kernel API function used to route
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) * trace debugging data to user-defined
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) * port like USB.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) * @buf: Trace debuging data buffer to write to tty target
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) * port. Null value will return with no write occurring.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) * @count: Size of buf. Value of 0 or a negative number will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) * return with no write occuring.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) * Caveat: If this line discipline does not set the tty it sits
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) * on top of via an open() call, this API function will not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) * call the tty's write() call because it will have no pointer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) * to call the write().
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) void n_tracesink_datadrain(u8 *buf, int count)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) mutex_lock(&writelock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) if ((buf != NULL) && (count > 0) && (this_tty != NULL))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) this_tty->ops->write(this_tty, buf, count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) mutex_unlock(&writelock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) EXPORT_SYMBOL_GPL(n_tracesink_datadrain);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) * Flush buffer is not impelemented as the ldisc has no internal buffering
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) * so the tty_driver_flush_buffer() is sufficient for this driver's needs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) * tty_ldisc function operations for this driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) static struct tty_ldisc_ops tty_n_tracesink = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) .owner = THIS_MODULE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) .magic = TTY_LDISC_MAGIC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) .name = DRIVERNAME,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) .open = n_tracesink_open,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) .close = n_tracesink_close,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) .read = n_tracesink_read,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) .write = n_tracesink_write
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) * n_tracesink_init- module initialisation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) * Registers this module as a line discipline driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) * Return:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) * 0 for success, any other value error.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) static int __init n_tracesink_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) /* Note N_TRACESINK is defined in linux/tty.h */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) int retval = tty_register_ldisc(N_TRACESINK, &tty_n_tracesink);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) if (retval < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) pr_err("%s: Registration failed: %d\n", __func__, retval);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) return retval;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) * n_tracesink_exit - module unload
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) * Removes this module as a line discipline driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) static void __exit n_tracesink_exit(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) int retval = tty_unregister_ldisc(N_TRACESINK);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) if (retval < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) pr_err("%s: Unregistration failed: %d\n", __func__, retval);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) module_init(n_tracesink_init);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) module_exit(n_tracesink_exit);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) MODULE_LICENSE("GPL");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) MODULE_AUTHOR("Jay Freyensee");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) MODULE_ALIAS_LDISC(N_TRACESINK);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) MODULE_DESCRIPTION("Trace sink ldisc driver");