X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Flinux%2Flibcfs.h;h=7f3ba3e338ef93d1844a36e743aa74b4d7f41a05;hp=8c1d92047dd4f88a8b497c80ca9de92f0de561de;hb=5655ee76f5c7573c9ad076a92df6388f27b65196;hpb=001b8dbfacb747f1649a2eb047a5f118ce32fdc7 diff --git a/libcfs/include/libcfs/linux/libcfs.h b/libcfs/include/libcfs/linux/libcfs.h index 8c1d920..7f3ba3e 100644 --- a/libcfs/include/libcfs/linux/libcfs.h +++ b/libcfs/include/libcfs/linux/libcfs.h @@ -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 /* @@ -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.*/