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

Miles Bader (miles@lsi.nec.co.jp)
29 Nov 2002 10:31:30 +0900


Rusty Russell <rusty@rustcorp.com.au> writes:
> > > int *ptr = symbol_get(their_integer);
> > > if (!ptr) ...
>
> 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".

I find the name a bit wierd, BTW -- it sounds like it's going to return
the _value_ of the symbol. How about something like `symbol_addr' instead?

-Miles

-- 
`To alcohol!  The cause of, and solution to,
 all of life's problems' --Homer J. Simpson
-
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/