def get_pointer(cffi_func):
    """
    Get a pointer to the underlying function for a CFFI function as an
    integer.
    """
    if cffi_func in _ool_func_ptr:
        return _ool_func_ptr[cffi_func]
    return int(ffi.cast("uintptr_t", cffi_func))

    Get a pointer to the underlying function for a CFFI function as an
    integer.
    
numba/core/typing/cffi_utils.py