Whamcloud - gitweb
b=20744 return ofed version to 1.5.1
[fs/lustre-release.git] / lustre / include / lustre_handles.h
index aa05d4a..afc9ddb 100644 (file)
@@ -26,7 +26,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  */
 /*
 #ifndef __LUSTRE_HANDLES_H_
 #define __LUSTRE_HANDLES_H_
 
+/** \defgroup handles handles
+ *
+ * @{
+ */
+
 #if defined(__linux__)
 #include <linux/lustre_handles.h>
 #elif defined(__APPLE__)
 
 #include <libcfs/libcfs.h>
 
+#if !defined(HAVE_RCU) || !defined(__KERNEL__)
+typedef struct {
+        int foo;
+} cfs_rcu_head_t;
+#endif
+
 typedef void (*portals_handle_addref_cb)(void *object);
 
 /* These handles are most easily used by having them appear at the very top of
@@ -90,4 +101,6 @@ void class_handle_free_cb(cfs_rcu_head_t *);
 int class_handle_init(void);
 void class_handle_cleanup(void);
 
+/** @} handles */
+
 #endif