Messages in this thread | | | Date | Mon, 24 Jan 2005 21:59:01 -0800 | From | Chris Wedgwood <> | Subject | Re: inter_module_get and __symbol_get |
| |
On Mon, Jan 24, 2005 at 11:31:04PM -0600, Terence Ripperda wrote:
> this is probably a stupid question, but how are weak references > used?
the linker sets them to zero, so "if (foo) { ... }" works nicely
it does mean if a module that set foo to non-zero is loaded, we need to zero it again when it's unloaded or else we have stale bogus pointers left around - 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/
| |