+static inline struct ubus_object *ubusd_find_object(uint32_t objid)
+{
+ struct ubus_object *obj;
+ struct ubus_id *id;
+
+ id = ubus_find_id(&objects, objid);
+ if (!id)
+ return NULL;
+
+ obj = container_of(id, struct ubus_object, id);
+ return obj;
+}
+