patch-2.3.1 linux/drivers/char/n_hdlc.c
Next file: linux/drivers/char/n_tty.c
Previous file: linux/drivers/char/msp3400.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Wed May 12 13:27:37 1999
- Orig file:
v2.3.0/linux/drivers/char/n_hdlc.c
- Orig date:
Fri Mar 12 08:20:38 1999
diff -u --recursive --new-file v2.3.0/linux/drivers/char/n_hdlc.c linux/drivers/char/n_hdlc.c
@@ -221,8 +221,8 @@
struct tty_struct *backup_tty; /* TTY to use if tty gets closed */
/* Queues for select() functionality */
- struct wait_queue *read_wait;
- struct wait_queue *write_wait;
+ wait_queue_head_t read_wait;
+ wait_queue_head_t write_wait;
int tbusy; /* reentrancy flag for tx wakeup code */
int woke_up;
@@ -724,7 +724,7 @@
{
struct n_hdlc *n_hdlc = tty2n_hdlc (tty);
int error = 0;
- struct wait_queue wait = {current, NULL};
+ DECLARE_WAITQUEUE(wait, current);
N_HDLC_BUF *tbuf;
if (debuglevel >= DEBUG_LEVEL_INFO)
@@ -1006,8 +1006,8 @@
n_hdlc->magic = HDLC_MAGIC;
n_hdlc->flags = 0;
- n_hdlc->read_wait = NULL;
- n_hdlc->write_wait = NULL;
+ init_waitqueue_head(&n_hdlc->read_wait);
+ init_waitqueue_head(&n_hdlc->write_wait);
return n_hdlc;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)