]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Initial version
authorpatiencew <patiencew@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 12 Nov 2007 16:18:23 +0000 (16:18 +0000)
committerpatiencew <patiencew@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 12 Nov 2007 16:18:23 +0000 (16:18 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@2047 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/ceph/kernel/poll.h [new file with mode: 0644]

diff --git a/trunk/ceph/kernel/poll.h b/trunk/ceph/kernel/poll.h
new file mode 100644 (file)
index 0000000..e185f3e
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef __FS_CEPH_POLL_H
+#define __FS_CEPH_POLL_H
+
+struct ceph_poll_task *start_poll(void);
+
+/* list of pollable files */
+struct ceph_pollable {
+       spinlock_t plock;
+        struct list_head poll_list;
+       struct file *file;
+       struct ceph_connection *con;
+};
+
+struct ceph_poll_task {
+        struct task_struct *poll_task;
+       struct ceph_pollable *pfiles;
+       u64 timeout;
+};
+
+#endif