forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 481
Open
Labels
• libRelated to the `rust/` library.Related to the `rust/` library.
Description
#7 introduces the machinery to support kernel parameters, but there are some things to do:
-
boolandi32— Parameter support #7 -
u8,u16,u32,u64andi16— Add charp and some primitive param types #82 -
charp/string— Add charp and some primitive param types #82 and Array and string params #110 -
invboolwas added a long time ago but was only ever used by 2 modules or so: we decided not to support it — Add charp and some primitive param types #82 -
bintwas added a long time ago, used by about 8 modules, but users should probably useboolproperly instead. -
bool_enable_onlywas added in 2015, but it is used by 1 module only, so we can skip it for now. -
hexintwas added in 2020 but only 1amdgpumodule uses it so far, so we can skip it for now. We could also consider having our own parser for the primitive types, accepting hex/oct/bin etc. automatically, rather than have different param types like this one. -
i128andu128: we forbid code using 128-bit integers. -
i8,i64,usizeandisize— Add Rust int param types #87 - Arrays — Array and string params #110
- unsafe flag (taints kernel)
- hwparam flag +
hwparam_type: probably another key in the dictionary, or use wrapper types. - An easy interface to provide custom types/ops (create a trait for it etc.)
Metadata
Metadata
Assignees
Labels
• libRelated to the `rust/` library.Related to the `rust/` library.