aboutsummaryrefslogtreecommitdiffstats
path: root/kernel4/linux/auto_fs_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel4/linux/auto_fs_i.h')
-rw-r--r--kernel4/linux/auto_fs_i.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/kernel4/linux/auto_fs_i.h b/kernel4/linux/auto_fs_i.h
new file mode 100644
index 0000000..93d796e
--- /dev/null
+++ b/kernel4/linux/auto_fs_i.h
@@ -0,0 +1,51 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ * linux/include/linux/auto_fs_i.h
+ *
+ * Copyright 1997 Transmeta Corporation - All Rights Reserved
+ *
+ * This file is part of the Linux kernel and is made available under
+ * the terms of the GNU General Public License, version 2, or at your
+ * option, any later version, incorporated herein by reference.
+ *
+ * ----------------------------------------------------------------------- */
+
+
+#ifndef _LINUX_AUTO_FS_I_H
+#define _LINUX_AUTO_FS_I_H
+
+#include <linux/lists.h>
+
+struct autofs_inode_hash {
+ ino_t ino;
+ struct dentry *dent;
+};
+
+struct autofs_inode_hash_tbl {
+ int entries;
+ int maxent; /* Highest entry number = max entries - 1 */
+ int shiftcnt;
+ struct autofs_inode_hash *hash;
+ void (*free)(const void *);
+};
+
+struct autofs_inode_info {
+ unsigned long last_usage; /* last time entried touched */
+ struct list_head *expiry; /* expiry queue pointers */
+ char *link_data; /* symlink contents */
+ int dir_mode; /* mode of a directory */
+ unsigned long dir_cookie; /* magic cookie for user space */
+ struct wait_queue *dir_queue; /* wait queue for locked dir */
+};
+
+struct autofs_sb_info {
+ struct file *pipe; /* pipe to user space daemon */
+ pid_t oz_pgrp; /* magic process group */
+ ino_t next_ino; /* next available inode number */
+ unsigned long exp_timeout; /* expiry timeout (jiffies) */
+ struct list_head *expiry; /* expiry queue */
+ struct autofs_inode_hash_tbl ihash; /* inode hash table */
+ struct autofs_wait_queue *queues; /* wait queue linked list */
+};
+
+#endif /* _LINUX_AUTO_FS_I_H */