On Mon, Jul 30, 2012 at 11:18 AM, Marciniszyn, Mike
<mike.marcinis...@intel.com> wrote:
> In our case, we need to get parameters from user space to the kernel.
>
> There are other alternatives, like configfs that seem more suitable.
>
> Again, the key requirement is that the more flexible configuration must be 
> available at module load as does the current module parameter patch.   If we 
> enlist a user space helper to assist in passing the more flexible parameter, 
> the lack of the helper cannot prevent the load of a module.

configfs or sysfs seem like a reasonably good fit.

Do you really need the configuration at the time of module load, or
would it work to tear down the device and reinitialize it if userspace
decides to update the configuration?  In other words, at module load
time, configure yourself with default parameters, and then if
userspace changes them, act like a hot unplug followed by a hot plug,
so you reinitialize your device from scratch.

 - R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to