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

Sean Neakums (sneakums@zork.net)
Fri, 29 Nov 2002 02:02:05 +0000


commence Miles Bader quotation:

> 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?

Surely the value of a symbol is precisely that: an address.

-- 
 /                          |
[|] Sean Neakums            |  Questions are a burden to others;
[|] <sneakums@zork.net>     |      answers a prison for oneself.
 \                          |
-
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/