Re: [PATCH RFC] [1/9] Core module symbol namespaces code and intro.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tom Tucker
Date: Tuesday, November 27, 2007 - 9:12 pm

On 11/27/07 7:27 PM, "Rusty Russell" <rusty@rustcorp.com.au> wrote:


Yes, I overstated this.


Absolutely in the limit. But there are many bits of code that work quite
nicely from release to release because they use services that live in the
smooth water in the wake of the Linux head.

I think defining that smooth water has merit. I also think that it would be
nice to limit the scope of module externs to avoid polluting the global
namespace. I'm not sure that this particular patch reaches these goals, but
it prompted me to comment.


Well, this is an interesting question. The answer is I think both are
important. It would be nice (and arguably necessary long term) to limit the
scope of externs. This can be accomplished with name spaces "I want bob's
implementation of read."

I think it also has value to define interfaces that are considered stable
(but not inviolate) to allow developers to make better informed decisions
when choosing interfaces. Having this info explicit in the code seems
logical to me.


Yeah, maybe I'm off in the weeds on this one...

Tom



-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] [8/9] Put UDP exports into a namespace, Andi Kleen, (Wed Nov 21, 7:43 pm)
[PATCH RFC] [9/9] Add a inet namespace, Andi Kleen, (Wed Nov 21, 7:43 pm)
Re: [PATCH RFC] [1/9] Core module symbol namespaces code a ..., Christoph Hellwig, (Thu Nov 22, 4:06 am)
Re: [PATCH RFC] [1/9] Core module symbol namespaces code a ..., Arnaldo Carvalho de Melo, (Thu Nov 22, 5:01 am)
Re: [PATCH RFC] [1/9] Core module symbol namespaces code a ..., Christoph Hellwig, (Thu Nov 22, 5:03 am)
Re: [PATCH RFC] [1/9] Core module symbol namespaces code a ..., Stephen Hemminger, (Mon Nov 26, 11:25 am)
Re: [PATCH RFC] [1/9] Core module symbol namespaces code a ..., Christoph Hellwig, (Tue Nov 27, 9:33 am)
Re: [PATCH RFC] [1/9] Core module symbol namespaces code a ..., Stephen Hemminger, (Tue Nov 27, 4:00 pm)
Re: [PATCH RFC] [1/9] Core module symbol namespaces code a ..., Tom Tucker, (Tue Nov 27, 9:12 pm)
Re: [PATCH RFC] [4/9] modpost: Fix format string warnings, Sam Ravnborg, (Mon Dec 10, 11:50 am)