Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-3963 libcfs: remove proc handler wrappers
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
linux
/
libcfs.h
diff --git
a/libcfs/include/libcfs/linux/libcfs.h
b/libcfs/include/libcfs/linux/libcfs.h
index
11a2709
..
7f3ba3e
100644
(file)
--- a/
libcfs/include/libcfs/linux/libcfs.h
+++ b/
libcfs/include/libcfs/linux/libcfs.h
@@
-54,7
+54,6
@@
#include <libcfs/linux/linux-lock.h>
#include <libcfs/linux/linux-fs.h>
#include <libcfs/linux/linux-tcpip.h>
#include <libcfs/linux/linux-lock.h>
#include <libcfs/linux/linux-fs.h>
#include <libcfs/linux/linux-tcpip.h>
-#include <libcfs/linux/linux-bitops.h>
#include <libcfs/linux/kp30.h>
#ifdef HAVE_ASM_TYPES_H
#include <libcfs/linux/kp30.h>
#ifdef HAVE_ASM_TYPES_H
@@
-64,7
+63,7
@@
#include <asm/timex.h>
#include <linux/sched.h> /* THREAD_SIZE */
#include <linux/rbtree.h>
#include <asm/timex.h>
#include <linux/sched.h> /* THREAD_SIZE */
#include <linux/rbtree.h>
-
+#include <linux/bitops.h>
#if !defined(__x86_64__)
# ifdef __ia64__
#if !defined(__x86_64__)
# ifdef __ia64__
@@
-112,6
+111,11
@@
do { \
*/
#define CFS_CURPROC_COMM_MAX (sizeof ((struct task_struct *)0)->comm)
*/
#define CFS_CURPROC_COMM_MAX (sizeof ((struct task_struct *)0)->comm)
+/* helper for sysctl handlers */
+int lprocfs_call_handler(void *data, int write, loff_t *ppos, void *buffer,
+ size_t *lenp, int (*handler)(void *data, int write,
+ loff_t pos, void *buffer, int len));
+
#include <linux/capability.h>
/*
#include <linux/capability.h>
/*
@@
-120,12
+124,17
@@
do { \
struct cfs_stack_trace {
};
struct cfs_stack_trace {
};
-/* long integer with size equal to pointer */
-typedef unsigned long ulong_ptr_t;
-typedef long long_ptr_t;
-
#ifndef WITH_WATCHDOG
#define WITH_WATCHDOG
#endif
#ifndef WITH_WATCHDOG
#define WITH_WATCHDOG
#endif
+/*
+ * Macros to access common characteristics of "current" UNIX process.
+ */
+#define current_pid() (current->pid)
+#define current_comm() (current->comm)
+
+/* check if task is running in compat mode.*/
+int current_is_32bit(void);
+
#endif /* _LINUX_LIBCFS_H */
#endif /* _LINUX_LIBCFS_H */