get_mid
#define UID2MID(M, UID) get_mid(M, UID)
static ipp_mod_id_t get_mid(void);
if ((mid = get_mid()) <= IPP_MOD_RESERVED) {