fs3270.c (85e9ca333d03fbd56b9e123c8456f0d98e20faad) fs3270.c (452a00d2ee288f2cbc36f676edd06cb14d2878c1)
1/*
2 * drivers/s390/char/fs3270.c
3 * IBM/3270 Driver - fullscreen driver.
4 *
5 * Author(s):
6 * Original 3270 Code for 2.4 written by Richard Hitt (UTS Global)
7 * Rewritten for 2.5/2.6 by Martin Schwidefsky <schwidefsky@de.ibm.com>
8 * -- Copyright (C) 2003 IBM Deutschland Entwicklung GmbH, IBM Corporation

--- 416 unchanged lines hidden (view full) ---

425 lock_kernel();
426 minor = iminor(filp->f_path.dentry->d_inode);
427 /* Check for minor 0 multiplexer. */
428 if (minor == 0) {
429 struct tty_struct *tty;
430 mutex_lock(&tty_mutex);
431 tty = get_current_tty();
432 if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) {
1/*
2 * drivers/s390/char/fs3270.c
3 * IBM/3270 Driver - fullscreen driver.
4 *
5 * Author(s):
6 * Original 3270 Code for 2.4 written by Richard Hitt (UTS Global)
7 * Rewritten for 2.5/2.6 by Martin Schwidefsky <schwidefsky@de.ibm.com>
8 * -- Copyright (C) 2003 IBM Deutschland Entwicklung GmbH, IBM Corporation

--- 416 unchanged lines hidden (view full) ---

425 lock_kernel();
426 minor = iminor(filp->f_path.dentry->d_inode);
427 /* Check for minor 0 multiplexer. */
428 if (minor == 0) {
429 struct tty_struct *tty;
430 mutex_lock(&tty_mutex);
431 tty = get_current_tty();
432 if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) {
433 mutex_unlock(&tty_mutex);
433 tty_kref_put(tty);
434 rc = -ENODEV;
435 goto out;
436 }
437 minor = tty->index + RAW3270_FIRSTMINOR;
434 rc = -ENODEV;
435 goto out;
436 }
437 minor = tty->index + RAW3270_FIRSTMINOR;
438 tty_kref_put(tty);
438 mutex_unlock(&tty_mutex);
439 }
440 /* Check if some other program is already using fullscreen mode. */
441 fp = (struct fs3270 *) raw3270_find_view(&fs3270_fn, minor);
442 if (!IS_ERR(fp)) {
443 raw3270_put_view(&fp->view);
444 rc = -EBUSY;
445 goto out;

--- 94 unchanged lines hidden ---
439 mutex_unlock(&tty_mutex);
440 }
441 /* Check if some other program is already using fullscreen mode. */
442 fp = (struct fs3270 *) raw3270_find_view(&fs3270_fn, minor);
443 if (!IS_ERR(fp)) {
444 raw3270_put_view(&fp->view);
445 rc = -EBUSY;
446 goto out;

--- 94 unchanged lines hidden ---