Changeset 679 for GPL/trunk/include/linux/moduleparam.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/moduleparam.h
r305 r679 102 102 #define param_check_ushort(name, p) __param_check(name, p, unsigned short) 103 103 104 extern int param_set_int(const char *val, struct kernel_param *kp);105 extern int param_get_int(char *buffer, struct kernel_param *kp);104 static inline int param_set_int(const char *val, const struct kernel_param *kp) {return 0;}; 105 static inline int param_get_int(char *buffer, const struct kernel_param *kp) {return 0;}; 106 106 #define param_check_int(name, p) __param_check(name, p, int) 107 107 … … 138 138 &__param_arr_##name, perm) 139 139 140 #ifndef TARGET_OS2 141 #define module_param_array(name, type, nump, perm) \ 142 module_param_array_named(name, name, type, nump, perm) 143 #endif 140 #define module_param_array(name, type, nump, perm) 141 #define module_param(name, type, perm) 144 142 extern int param_array_set(const char *val, struct kernel_param *kp); 145 143 extern int param_array_get(char *buffer, struct kernel_param *kp); … … 165 163 extern void module_param_sysfs_remove(struct module *mod); 166 164 165 struct kernel_param_ops { 166 /* Returns 0, or -errno. arg is in kp->arg. */ 167 int (*set)(const char *val, const struct kernel_param *kp); 168 /* Returns length written or -errno. Buffer is 4k (ie. be short!) */ 169 int (*get)(char *buffer, const struct kernel_param *kp); 170 /* Optional function to free kp->arg when module unloaded. */ 171 void (*free)(void *arg); 172 }; 173 174 #define module_param_hw_array(name, type, hwtype, nump, perm) 175 #define module_param_hw(name, type, hwtype, perm) 176 #define MODULE_PARM(var,type) 177 #define MODULE_PARM_DESC(var,desc) 178 167 179 #endif /* _LINUX_MODULE_PARAMS_H */
Note:
See TracChangeset
for help on using the changeset viewer.