patch-2.4.20 linux-2.4.20/drivers/sgi/char/usema.c
Next file: linux-2.4.20/drivers/sgi/char/usema.h
Previous file: linux-2.4.20/drivers/sgi/char/streamable.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Thu Nov 28 15:53:14 2002
- Orig file:
linux-2.4.19/drivers/sgi/char/usema.c
- Orig date:
Mon Aug 27 08:56:31 2001
diff -urN linux-2.4.19/drivers/sgi/char/usema.c linux-2.4.20/drivers/sgi/char/usema.c
@@ -18,7 +18,7 @@
*
* For more information:
* usema(7m), usinit(3p), usnewsema(3p)
- * /usr/include/sys/usioctl.h
+ * /usr/include/sys/usioctl.h
*
*/
#include <linux/fs.h>
@@ -52,7 +52,7 @@
newfd = get_unused_fd();
if (newfd < 0)
return newfd;
-
+
get_file(usema->filp);
fd_install(newfd, usema->filp);
/* Is that it? */
@@ -66,7 +66,7 @@
{
struct irix_usema *usema = file->private_data;
int retval;
-
+
printk("[%s:%d] wants ioctl 0x%xd (arg 0x%lx)",
current->comm, current->pid, cmd, arg);
@@ -140,10 +140,10 @@
sgi_usemaclone_poll(struct file *filp, poll_table *wait)
{
struct irix_usema *usema = filp->private_data;
-
+
printk("[%s:%d] wants to poll usema %p",
current->comm, current->pid, usema);
-
+
return 0;
}
@@ -155,7 +155,7 @@
usema = kmalloc (sizeof (struct irix_usema), GFP_KERNEL);
if (!usema)
return -ENOMEM;
-
+
usema->filp = filp;
init_waitqueue_head(&usema->proc_list);
filp->private_data = usema;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)