Skip to content

driver-model: per-device parameter, round 3

Tejun Heo lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 of 15 patches 1 replyIn review

14 of 15 patches are in this archive. The cover letter announces 15.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15driver-model: param_array_set num field fixkernel/params.c+2 -10 replies
2/15driver-model: flag type helpers added to moduleparaminclude/linux/moduleparam.h kernel/params.c+51 -00 replies
3/15driver-model:include/linux/moduleparam.h kernel/module.c kernel/params.c+92 -530 replies
4/15driver-model: const qualifier removed from @val of param_array()include/linux/moduleparam.h kernel/module.c kernel/params.c+11 -100 replies
5/15driver-model: param_array_delims() implementedinclude/linux/moduleparam.h kernel/params.c+59 -270 replies
6/15driver-model: ':' added to default param_array delimitersinclude/linux/moduleparam.h+1 -10 replies
7/15driver-model: next_arg() renamed to param_next_arg() and became globalinclude/linux/moduleparam.h kernel/params.c+5 -20 replies
8/15driver-model: MODULE_PARAM_PREFIX is changed to empty string from nothinginclude/linux/moduleparam.h+1 -10 replies
9/15driver-model: parse_args()'s @unknown function modified to take void *arginclude/linux/moduleparam.h init/main.c kernel/module.c +1 more+13 -110 replies
10/15driver-model: module_param_array() changed back to accept variable name directly for @num and module_param_arr() addedinclude/linux/moduleparam.h+25 -80 replies
11/15driver-model: module_param_array/arr() change applied+0 -00 replies
12/15driver-model: devparam implementeddrivers/base/Makefile drivers/base/deviceparam.c include/linux/device.h +2 more+1108 -10 replies
13/15driver-model: devparam applieddrivers/base/bus.c drivers/base/driver.c init/main.c +1 more+49 -150 replies
14/15driver-model: devparam documentationDocumentation/driver-model/devparam.txt+419 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 2.6.10-rc1 0/15] driver-model: per-device parameter, round 3

Hello, guys.

This is the third round of devparam patches. I think it's mostly
ready now. Changes from the last round include

1. vector is gone. BTW, I found out that implementing simple
vector-like thing inside devparam looked quite okay. I actually like this way better now. :-)

2. KPARAM_NO_RANGE added. Unfortunately, macros still need to use
explicit 1, 0 as KPARAM_NO_RANGE is recognized as one argument rather than two for macros. However, all those macros are right under the definition of its ranged counterpart, so I don't think it will cause any confusion.

3. DEFINE_DEVICE_PARAMSET_NS() added. This macros accepts one
additional argument - @Namespace. All parameters defined inside this macro are assumed to have dot-appened @Namespace as their prefix. Please read Documentation/devparam.txt for more details.

4. parameters subdirectory handling fixed and improved. Also,
parameters subdirectory isn't created when no devparam is used.

Regarding the last posting, Rusty, parameters subdirectory rename is
not really a user-visible breakage. It hasn't seen the light of day, yet. I was talking about parameters subdirectory under the device's sysfs node.

I'm also posting another set of patches for device manual attach.
This was what I was aiming for from the start. This basically dumps device-driver association management to user-space and allows user-space to specify the driver to attach to and what arguments to use when attaching. I'll write more about it when I post the patches.

Whether manualattach is accepted or not, manualattach at least will
show that devparam implements per-device parameter which can be specified dynamically while maintaining backward compatibility (No user-visible breakage!).

All patches are against a freshly updated Linus bk tree and as
before, the updated document and dptest module source codes are at

http://home-tj.org/devparam/devparam.txt
http://home-tj.org/devparam/dptest.tar.gz

Also, all patches are available at the following URL.

http://home-tj.org/devparam/20041104/

I believe inssues are mostly resolved and devparam is ready to be
tested now. Please consider accepting it or tell me what you guys dislike. I'll fix'em ASAP. :-)

Thanks.

Signature · 1 line
tejun