Re: valid module function pointer?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 17 Sep 1999 23:24:52 +0100 (BST)


> Can anyone suggest a way to test a module function pointer for
> validity? The problem is that we currently save pointers to kernel
> space funciton pointers which might go away if a pcmcia card is
> removed. Is there a way to test if the function pointer belongs to a
> module which is still loaded?

No. You need to ensure it isnt unloaded on you. Look at the network device
notifier

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/