Module parameters set and get functions for basic data types are missing.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I was trying to understand how the module parameters are implemented ( include/linux/moduleparam.h). The kernel supports following types of module parameters by default
BASIC TYPES ==> int, long, short, uint, ulong, ushort, byte
AND also ==> bool, invbool, charp, array, copystring, string

For each of these data types there are two functions declared in the file "include/linux/moduleparam.h" as following

extern int param_set_byte(const char *val, struct kernel_param *kp);
extern int param_get_byte(char *buffer, struct kernel_param *kp);

similarly, these two functions set and get are declared for each type supported by the kernel
( param_set_##type, param_get_##type )

Some of these functions are implemented in the file "./kernel/params.c", but all of the basic data types related function are missing from the kernel source

ie. I am able to find the definition of set and get function for bool, invbool, charp, array, copystring, string in file "./kernel/params.c" but, the corresponding set and get functions for basic data types are missing.

Now, the question is how the kernel support these data types and why those functions are declared but, their definition is missing?

Thanks and Regards,
Prasad.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux