patch-2.1.89 linux/include/linux/file.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/linux/etherdevice.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.88/linux/include/linux/file.h linux/include/linux/file.h
@@ -47,4 +47,12 @@
 	}
 }
 
+/*
+ * Install a file pointer in the files structure.
+ */
+extern inline void fd_install(unsigned long fd, struct file *file)
+{
+	current->files->fd[fd] = file;
+}
+
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov