patch-2.3.46 linux/drivers/sgi/char/shmiq.c
Next file: linux/drivers/sound/ac97_codec.c
Previous file: linux/drivers/scsi/st.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Feb 16 15:42:05 2000
- Orig file:
v2.3.45/linux/drivers/sgi/char/shmiq.c
- Orig date:
Thu Feb 10 17:11:13 2000
diff -u --recursive --new-file v2.3.45/linux/drivers/sgi/char/shmiq.c linux/drivers/sgi/char/shmiq.c
@@ -53,6 +53,7 @@
#include <linux/wait.h>
#include <linux/major.h>
#include <linux/smp_lock.h>
+#include <linux/devfs_fs_kernel.h>
#include <asm/shmiq.h>
#include <asm/mman.h>
@@ -443,5 +444,12 @@
shmiq_init (void)
{
printk ("SHMIQ setup\n");
- register_chrdev (SHMIQ_MAJOR, "shmiq", &shmiq_fops);
+ devfs_register_chrdev(SHMIQ_MAJOR, "shmiq", &shmiq_fops);
+ devfs_register (NULL, "shmiq", 0, DEVFS_FL_DEFAULT,
+ SHMIQ_MAJOR, 0, S_IFCHR | S_IRUSR | S_IWUSR, 0, 0,
+ &shmiq_fops, NULL);
+ devfs_register_series (NULL, "qcntl%u", 2, DEVFS_FL_DEFAULT,
+ SHMIQ_MAJOR, 1,
+ S_IFCHR | S_IRUSR | S_IWUSR, 0, 0,
+ &shmiq_fops, NULL);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)