Ignore:
Timestamp:
Jan 1, 2021, 5:31:48 AM (5 years ago)
Author:
Paul Smedley
Message:

Add source for uniaud32 based on code from linux kernel 5.4.86

Location:
GPL/branches/uniaud32-next
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/moduleparam.h

    r305 r615  
    102102#define param_check_ushort(name, p) __param_check(name, p, unsigned short)
    103103
    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);
     104static inline int param_set_int(const char *val, const struct kernel_param *kp) {return 0;};
     105static inline int param_get_int(char *buffer, const struct kernel_param *kp) {return 0;};
    106106#define param_check_int(name, p) __param_check(name, p, int)
    107107
     
    165165extern void module_param_sysfs_remove(struct module *mod);
    166166
     167struct 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)               
    167178#endif /* _LINUX_MODULE_PARAMS_H */
Note: See TracChangeset for help on using the changeset viewer.