Update osl_generic_lookup function