summaryrefslogtreecommitdiff
path: root/xpp/xpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xpd.h')
-rw-r--r--xpp/xpd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xpp/xpd.h b/xpp/xpd.h
index 74b759d..4f19679 100644
--- a/xpp/xpd.h
+++ b/xpp/xpd.h
@@ -44,6 +44,10 @@ typedef unsigned gfp_t; /* Added in 2.6.14 */
type name = init; \
module_param(name, type, 0600); \
MODULE_PARM_DESC(name, desc)
+#define DEF_PARM_RO(type,name,init,desc) \
+ type name = init; \
+ module_param(name, type, 0400); \
+ MODULE_PARM_DESC(name, desc)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
/*