Any way to get a CUfunction from a statically-linked __global__ function?

The runtime API lets me interact with statically linked kernels as void*s. The driver API uses CUfunctions to do the same operations. I’m trying to write a framework that works with both statically-linked and dynamically-loaded kernels and handling both situations separately to do the same ops on what is under the hood the same type is a real pain.

If I could just pull the CUfunction out in the beginning then I could just use the driver API for everything and life would be much simpler. But, I can’t find any interface to do that. What am I missing?