/* for giving some module-config apps hints about the entity of the param,
* like Hz, baud, MSymb/s, kWh/MFlops
*/
#define MODULE_PARM_ENTITY(var,desc) \
const char __module_parm_entity_##var[] \
__attribute__((section(".modinfo"))) = \
"parm_entity_" __MODULE_STRING(var) "=" desc
/* for allowing a module-config app to parse the values, and decide if
* they're out of bound/overflow ... if the driver can handle it
* f.e. 0x300-0x500,0x624
* "Linux", "BSD", "eNTe"
*/
#define MODULE_PARM_REGEXP(var,desc) \
const char __module_parm_entity_##var[] \
__attribute__((section(".modinfo"))) = \
"parm_regesp_" __MODULE_STRING(var) "=" desc
just my 2 cents
++dent
-- Thomas Mirlacher Student of ComputerScience, University of Salzburg dent@cosy.sbg.ac.at http://www.cosy.sbg.ac.at/~dent
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu