resource_type
enum resource_type {
static inline unsigned long resource_type(const struct resource *res)