Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356101
b: refs/heads/master
c: 736c9fd
h: refs/heads/master
i:
  356099: cb9f72a
v: v3
  • Loading branch information
Martin Schwidefsky committed Feb 14, 2013
1 parent 459e583 commit c57b195
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7292e7e01cc98fa04a9a3eb7ca11d1bca99c35e9
refs/heads/master: 736c9fd2902d919b075cf9cf371d1733c5ff635d
15 changes: 15 additions & 0 deletions trunk/drivers/s390/char/tty3270.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,20 @@ static int tty3270_install(struct tty_driver *driver, struct tty_struct *tty)
return 0;
}

/*
* This routine is called whenever a 3270 tty is opened.
*/
static int
tty3270_open(struct tty_struct *tty, struct file *filp)
{
struct tty3270 *tp = tty->driver_data;
struct tty_port *port = &tp->port;

port->count++;
tty_port_tty_set(port, tty);
return 0;
}

/*
* This routine is called when the 3270 tty is closed. We wait
* for the remaining request to be completed. Then we clean up.
Expand Down Expand Up @@ -1753,6 +1767,7 @@ static long tty3270_compat_ioctl(struct tty_struct *tty,
static const struct tty_operations tty3270_ops = {
.install = tty3270_install,
.cleanup = tty3270_cleanup,
.open = tty3270_open,
.close = tty3270_close,
.write = tty3270_write,
.put_char = tty3270_put_char,
Expand Down

0 comments on commit c57b195

Please sign in to comment.