Lines Matching +full:open +full:- +full:source
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pps-ldisc.c -- PPS line discipline
35 dev_dbg(&pps->dev, "PPS %s at %lu\n",
44 struct tty_driver *drv = tty->driver;
45 int index = tty->index + drv->name_base;
51 snprintf(info.name, PPS_MAX_NAME_LEN, "%s%d", drv->driver_name, index);
52 snprintf(info.path, PPS_MAX_NAME_LEN, "/dev/%s%d", drv->name, index);
60 pr_err("cannot register PPS source \"%s\"\n", info.path);
63 pps->lookup_cookie = tty;
65 /* Now open the base class N_TTY ldisc */
68 pr_err("cannot open tty ldisc \"%s\"\n", info.path);
72 dev_dbg(&pps->dev, "source \"%s\" added\n", info.path);
92 dev_info(&pps->dev, "removed\n");
109 /* Save N_TTY's open()/close() methods */
110 alias_n_tty_open = pps_ldisc_ops.open;
118 pps_ldisc_ops.open = pps_tty_open;