Whamcloud - gitweb
LU-3963 libcfs: remove proc handler wrappers
[fs/lustre-release.git] / libcfs / include / libcfs / linux / libcfs.h
index 8c1d920..7f3ba3e 100644 (file)
@@ -111,6 +111,11 @@ do {                                                                    \
  */
 #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>
 
 /*
@@ -119,10 +124,6 @@ do {                                                                    \
 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
@@ -131,7 +132,6 @@ typedef long long_ptr_t;
  * 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.*/