Changeset 615 for GPL/branches/uniaud32-next/include/linux/moduleparam.h
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/moduleparam.h
r305 r615 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 … … 165 165 extern void module_param_sysfs_remove(struct module *mod); 166 166 167 struct kernel_param_ops { 168 /* Returns 0, or -errno. arg is in kp->arg. */ 169 int (*set)(const char *val, const struct kernel_param *kp); 170 /* Returns length written or -errno. Buffer is 4k (ie. be short!) */ 171 int (*get)(char *buffer, const struct kernel_param *kp); 172 /* Optional function to free kp->arg when module unloaded. */ 173 void (*free)(void *arg); 174 }; 175 176 #define module_param_hw_array(name, type, hwtype, nump, perm) 177 #define module_param_hw(name, type, hwtype, perm) 167 178 #endif /* _LINUX_MODULE_PARAMS_H */
Note:
See TracChangeset
for help on using the changeset viewer.