]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/device.h
memcg, slab: do not destroy children caches if parent has aliases
[karo-tx-linux.git] / include / linux / device.h
index 952b01033c32dedcf83349a988b920c1c5ed8aa8..233bbbeb768d6f8c5a6aa32411675a14b3401272 100644 (file)
@@ -560,6 +560,8 @@ extern int device_create_file(struct device *device,
                              const struct device_attribute *entry);
 extern void device_remove_file(struct device *dev,
                               const struct device_attribute *attr);
+extern bool device_remove_file_self(struct device *dev,
+                                   const struct device_attribute *attr);
 extern int __must_check device_create_bin_file(struct device *dev,
                                        const struct bin_attribute *attr);
 extern void device_remove_bin_file(struct device *dev,
@@ -626,6 +628,7 @@ static inline void *devm_kcalloc(struct device *dev,
        return devm_kmalloc_array(dev, n, size, flags | __GFP_ZERO);
 }
 extern void devm_kfree(struct device *dev, void *p);
+extern char *devm_kstrdup(struct device *dev, const char *s, gfp_t gfp);
 
 void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res);
 void __iomem *devm_request_and_ioremap(struct device *dev,