struct device_hotplug_ops;
typedef int (*device_state_cb)(struct device *, bool up);
struct device_hotplug_ops;
typedef int (*device_state_cb)(struct device *, bool up);
/*
* link layer device. typically represents a linux network device.
* can be used to support VLANs as well
/*
* link layer device. typically represents a linux network device.
* can be used to support VLANs as well
struct device_hotplug_ops {
int (*add)(struct device *main, struct device *member);
int (*del)(struct device *main, struct device *member);
struct device_hotplug_ops {
int (*add)(struct device *main, struct device *member);
int (*del)(struct device *main, struct device *member);
extern const struct device_type simple_device_type;
extern const struct device_type bridge_device_type;
extern const struct device_type simple_device_type;
extern const struct device_type bridge_device_type;
struct device *device_create(const char *name, const struct device_type *type,
struct blob_attr *config);
void device_init_settings(struct device *dev, struct blob_attr **tb);
struct device *device_create(const char *name, const struct device_type *type,
struct blob_attr *config);
void device_init_settings(struct device *dev, struct blob_attr **tb);
void device_init_virtual(struct device *dev, const struct device_type *type, const char *name);
int device_init(struct device *iface, const struct device_type *type, const char *ifname);
void device_cleanup(struct device *iface);
void device_init_virtual(struct device *dev, const struct device_type *type, const char *name);
int device_init(struct device *iface, const struct device_type *type, const char *ifname);
void device_cleanup(struct device *iface);
void device_add_user(struct device_user *dep, struct device *iface);
void device_remove_user(struct device_user *dep);
void device_add_user(struct device_user *dep, struct device *iface);
void device_remove_user(struct device_user *dep);