OpenCloudOS-Kernel/Documentation/driver-api/driver-model
Bartosz Golaszewski b264ba41b2 devres: provide devm_krealloc()
add this patch for arm-cmn
commit f82485722e upstream.

Implement the managed variant of krealloc(). This function works with
all memory allocated by devm_kmalloc() (or devres functions using it
implicitly like devm_kmemdup(), devm_kstrdup() etc.).

Managed realloc'ed chunks can be manually released with devm_kfree().

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200824173859.4910-2-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huang Cun <cunhuang@tencent.com>
2024-08-13 11:43:51 +08:00
..
binding.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
bus.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
class.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
design-patterns.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
device.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
devres.rst devres: provide devm_krealloc() 2024-08-13 11:43:51 +08:00
driver.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
index.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
overview.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
platform.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
porting.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00