Re: [BUG] [2.5.49] symbol_get doesn't work

Rusty Russell (rusty@rustcorp.com.au)
Fri, 29 Nov 2002 10:42:11 +1100


In message <007401c2966b$7e370fc0$94d40a0a@amr.corp.intel.com> you write:
> <snip>
> > /* In header somewhere. */
> > extern int their_integer;
> >
> > ....
> > int *ptr = symbol_get(their_integer);
> > if (!ptr) ...
> >
>
> I couldn't find a single file in the kernel that uses this. What
> would be the appropriate scenario for using this? Is there
> code in the kernel that is suppose to migrating to this?

That's because it's a new primitive. Very few places really want to
use it, they usually just want to use the symbol directly. However,
there are some places where such a dependency is too harsh: it's more
"if I can get this, great, otherwise I'll do something else".

Hope that helps,
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/