Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceca73e
)
first part of 2.6.26 support (lnet/libcfs part)
author
shadow
<shadow>
Thu, 20 Nov 2008 09:29:30 +0000
(09:29 +0000)
committer
shadow
<shadow>
Thu, 20 Nov 2008 09:29:30 +0000
(09:29 +0000)
Branch b1_x_lnet_gate
b=14250
i=maxim
i=deen
lnet/include/libcfs/linux/linux-prim.h
patch
|
blob
|
history
diff --git
a/lnet/include/libcfs/linux/linux-prim.h
b/lnet/include/libcfs/linux/linux-prim.h
index
ebf3a8a
..
eb42170
100644
(file)
--- a/
lnet/include/libcfs/linux/linux-prim.h
+++ b/
lnet/include/libcfs/linux/linux-prim.h
@@
-84,6
+84,17
@@
typedef struct ctl_table_header cfs_sysctl_table_header_t;
#endif
#define cfs_unregister_sysctl_table(t) unregister_sysctl_table(t)
+#define DECLARE_PROC_HANDLER(name) \
+static int \
+LL_PROC_PROTO(name) \
+{ \
+ DECLARE_LL_PROC_PPOS_DECL; \
+ \
+ return proc_call_handler(table->data, write, \
+ ppos, buffer, lenp, \
+ __##name); \
+}
+
/*
* Symbol register
*/