39 #include <linux/module.h>
41 #include <linux/tty.h>
42 #include <linux/sched.h>
48 static int dgrp_ports_open(
struct inode *,
struct file *);
52 .open = dgrp_ports_open,
72 static void *dgrp_ports_seq_start(
struct seq_file *seq, loff_t *
pos)
75 seq_puts(seq,
"#num tty_open pr_open tot_wait MSTAT IFLAG OFLAG CFLAG BPS DIGIFLAGS\n");
80 static void *dgrp_ports_seq_next(
struct seq_file *seq,
void *
v, loff_t *pos)
92 static void dgrp_ports_seq_stop(
struct seq_file *seq,
void *v)
96 static int dgrp_ports_seq_show(
struct seq_file *seq,
void *v)
126 seq_printf(seq,
"%02d %02d %02d %02d 0x%04X 0x%04X 0x%04X 0x%04X %-6d 0x%04X\n",
144 .start = dgrp_ports_seq_start,
145 .next = dgrp_ports_seq_next,
146 .stop = dgrp_ports_seq_stop,
147 .show = dgrp_ports_seq_show,
163 rtn =
seq_open(file, &ports_seq_ops);
166 seq->
private = PDE(inode)->data;