Re: [RFC/PATCH] Per-device parameter support (4/16)

From: Tejun Heo
Date: Fri Oct 22 2004 - 23:54:41 EST


Oops, I've used explanation for dp_3 again for dp_4. Sorry.

On Sat, Oct 23, 2004 at 01:25:51PM +0900, Tejun Heo wrote:
> dp_04_module_param_ranged.diff
>
> This is the 4th patch of 16 patches for devparam.

This patch adds min and max fields of long type to struct
kernel_param and adds range checking for integer, charp and array
parameters. Also, struct kparam_string isn't necessary anymore as we
can use max field instead. I think this simple range-checking can
remove a lot of dulicated codes from drivers.

--
tejun
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/