summaryrefslogtreecommitdiff
path: root/include/linux/moduleparam.h
AgeCommit message (Collapse)Author
2003-06-15[PATCH] Fix over-alignment problem on x86-64Andi Kleen
Thanks to Jan Hubicka who suggested this fix. The problem seems to be that gcc generates a 32byte alignment for static objects > 32bytes. This causes gas to set a high alignment on the section, which causes the uneven (not multiple of sizeof(struct kernel_param)) section size. The pointer division with a base not being a multiple of sizeof(*ptr) then causes the invalid result. This just forces a small alignment, which makes the section end come out with the correct alignment. The only mystery left is why ld chose a 16 byte padding instead of 32byte.
2002-12-29[PATCH] Trivial patch for param.h: make it const.Richard Henderson
Add a const declaration to the __module_param_call so __param section gets more correct attributes.
2002-12-14[PATCH] Module Parameter Core PatchRusty Russell
This patch is a rewrite of the insmod and boot parameter handling, to unify them. The new format is fairly simple: built on top of __module_param_call there are several helpers, eg "module_param(foo, int, 000)". The final argument is the permissions bits, for exposing parameters in sysfs (if non-zero) at a later stage.