I'm not sure how much pain it is worth, but I too like _q_lookup better than _q_getname. The word getname suggests that the result (rather than the argument) is a name.