Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/device.h
Show First 20 Lines • Show All 456 Lines • ▼ Show 20 Lines | device_destroy(struct class *class, dev_t devt) | ||||
unit = MINOR(devt); | unit = MINOR(devt); | ||||
bsddev = devclass_get_device(class->bsdclass, unit); | bsddev = devclass_get_device(class->bsdclass, unit); | ||||
if (bsddev != NULL) | if (bsddev != NULL) | ||||
device_unregister(device_get_softc(bsddev)); | device_unregister(device_get_softc(bsddev)); | ||||
} | } | ||||
static inline void | static inline void | ||||
dev_pm_set_driver_flags(struct device *dev, u32 flags) | |||||
{ | |||||
printf("%s: missing implementation\n", __func__); | |||||
} | |||||
static inline void | |||||
linux_class_kfree(struct class *class) | linux_class_kfree(struct class *class) | ||||
{ | { | ||||
kfree(class); | kfree(class); | ||||
} | } | ||||
static inline struct class * | static inline struct class * | ||||
class_create(struct module *owner, const char *name) | class_create(struct module *owner, const char *name) | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |