If I have a function that is in one Linux Kernel, but not others, how would I go about using the same source code to compile for different kernels?
For example, if functionA is an old function which both kernels support, but functionB is only supported in newer kernels and I want to use functionB when I can for the systems that support it, how do I have only one piece of code?
Is there a way to dynamically try to load the function by name functionB and then if it fails, go ahead and dynamically load functionA?