tty.c (840af824b2bf9194ea596e0ddc7aa05066794ca1) | tty.c (60b33c133ca0b7c0b6072c87234b63fee6e80558) |
---|---|
1/* 2 RFCOMM implementation for Linux Bluetooth stack (BlueZ). 3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> 4 Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License version 2 as 8 published by the Free Software Foundation; --- 713 unchanged lines hidden (view full) --- 722 if (dlc->state == BT_CONNECTED) 723 break; 724 725 if (signal_pending(current)) { 726 err = -EINTR; 727 break; 728 } 729 | 1/* 2 RFCOMM implementation for Linux Bluetooth stack (BlueZ). 3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> 4 Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License version 2 as 8 published by the Free Software Foundation; --- 713 unchanged lines hidden (view full) --- 722 if (dlc->state == BT_CONNECTED) 723 break; 724 725 if (signal_pending(current)) { 726 err = -EINTR; 727 break; 728 } 729 |
730 tty_unlock(); | |
731 schedule(); | 730 schedule(); |
732 tty_lock(); | |
733 } 734 set_current_state(TASK_RUNNING); 735 remove_wait_queue(&dev->wait, &wait); 736 737 if (err == 0) 738 device_move(dev->tty_dev, rfcomm_get_device(dev), 739 DPM_ORDER_DEV_AFTER_PARENT); 740 --- 345 unchanged lines hidden (view full) --- 1086 if (test_bit(RFCOMM_RELEASE_ONHUP, &dev->flags)) { 1087 if (rfcomm_dev_get(dev->id) == NULL) 1088 return; 1089 rfcomm_dev_del(dev); 1090 rfcomm_dev_put(dev); 1091 } 1092} 1093 | 731 } 732 set_current_state(TASK_RUNNING); 733 remove_wait_queue(&dev->wait, &wait); 734 735 if (err == 0) 736 device_move(dev->tty_dev, rfcomm_get_device(dev), 737 DPM_ORDER_DEV_AFTER_PARENT); 738 --- 345 unchanged lines hidden (view full) --- 1084 if (test_bit(RFCOMM_RELEASE_ONHUP, &dev->flags)) { 1085 if (rfcomm_dev_get(dev->id) == NULL) 1086 return; 1087 rfcomm_dev_del(dev); 1088 rfcomm_dev_put(dev); 1089 } 1090} 1091 |
1094static int rfcomm_tty_tiocmget(struct tty_struct *tty, struct file *filp) | 1092static int rfcomm_tty_tiocmget(struct tty_struct *tty) |
1095{ 1096 struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; 1097 1098 BT_DBG("tty %p dev %p", tty, dev); 1099 1100 return dev->modem_status; 1101} 1102 --- 88 unchanged lines hidden --- | 1093{ 1094 struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; 1095 1096 BT_DBG("tty %p dev %p", tty, dev); 1097 1098 return dev->modem_status; 1099} 1100 --- 88 unchanged lines hidden --- |