patch-2.2.19 linux/drivers/isdn/divert/divert_procfs.c
Next file: linux/drivers/isdn/divert/isdn_divert.c
Previous file: linux/drivers/isdn/divert/divert_init.c
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Sun Mar 25 11:37:32 2001
- Orig file:
v2.2.18/drivers/isdn/divert/divert_procfs.c
- Orig date:
Sun Mar 25 11:28:24 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/isdn/divert/divert_procfs.c linux/drivers/isdn/divert/divert_procfs.c
@@ -1,5 +1,5 @@
/*
- * $Id: divert_procfs.c,v 1.10 2000/11/13 22:51:47 kai Exp $
+ * $Id: divert_procfs.c,v 1.11 2000/11/25 17:01:00 kai Exp $
*
* Filesystem handling for the diversion supplementary services.
*
@@ -32,6 +32,7 @@
#include <linux/fs.h>
#endif
#include <linux/isdnif.h>
+#include <linux/isdn_compat.h>
#include "isdn_divert.h"
/*********************************/
@@ -40,7 +41,7 @@
ulong if_used = 0; /* number of interface users */
static struct divert_info *divert_info_head = NULL; /* head of queue */
static struct divert_info *divert_info_tail = NULL; /* pointer to last entry */
-static struct wait_queue *rd_queue = 0; /* Queue IO */
+static wait_queue_head_t rd_queue;
/*********************************/
/* put an info buffer into queue */
@@ -281,19 +282,14 @@
static struct file_operations isdn_fops =
{
- isdn_divert_lseek,
- isdn_divert_read,
- isdn_divert_write,
- NULL, /* isdn_readdir */
- isdn_divert_poll, /* isdn_poll */
- isdn_divert_ioctl, /* isdn_ioctl */
- NULL, /* isdn_mmap */
- isdn_divert_open,
- NULL, /* flush */
- isdn_divert_close,
- NULL /* fsync */
+ llseek: isdn_divert_lseek,
+ read: isdn_divert_read,
+ write: isdn_divert_write,
+ poll: isdn_divert_poll,
+ ioctl: isdn_divert_ioctl,
+ open: isdn_divert_open,
+ release: isdn_divert_close,
};
-
struct inode_operations divert_file_inode_operations;
/****************************/
@@ -310,6 +306,7 @@
divert_dev_init(void)
{
+ init_waitqueue_head(&rd_queue);
#ifdef CONFIG_PROC_FS
isdn_proc_entry = create_proc_entry("isdn", S_IFDIR | S_IRUGO | S_IXUGO, proc_net);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)