Re: Modules and the Interfaces who Love Them (Take I)

Roman Zippel (zippel@linux-m68k.org)
Wed, 13 Nov 2002 20:02:29 +0100 (CET)


Hi,

On Wed, 13 Nov 2002, Rusty Russell wrote:

> Feedback appreciated. It's aimed at driver writers.

If that's your audience, I expect a very confused audience.
You can make it very simple: There are safe interfaces and there are
broken interfaces and you shall never write or use broken interfaces.
For the majority of driver writers that's good enough.
Any documentation about module writing should also include/point to a
chapter about resource management. The user has to understand anyway, by
whom the module resources are used, otherwise he has more problems than
just module unloading. Module management is just a small part of this
whole picture or could be part of it, but right now the current module
code is desperate attempt at keeping it out of it.
I would prefer if the user would be teached about proper resource
management at kernel level. As soon as the user gets that right he will
also have no problems to get module unloading right _if_ that would follow
the same rules, but currently it involves lots of black magic instead.
Rusty, I'm not impressed by the new module code, maybe I'm missing
something, but it doesn't fix anything and only encourages to write more
broken interfaces.

bye, Roman

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