#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 <asm/timex.h>
#include <linux/sched.h> /* THREAD_SIZE */
#include <linux/rbtree.h>
-
+#include <linux/bitops.h>
#if !defined(__x86_64__)
# ifdef __ia64__
*/
#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 __user *buffer, size_t *lenp,
+ int (*handler)(void *data, int write,
+ loff_t pos, void __user *buffer, int len));
+
#include <linux/capability.h>
/*
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
* Macros to access common characteristics of "current" UNIX process.
*/
#define current_pid() (current->pid)
-#define current_umask() (current->fs->umask)
#define current_comm() (current->comm)
/* check if task is running in compat mode.*/