* 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
int class_handle_init(void);
void class_handle_cleanup(void);
+/** @} handles */
+
#endif