devres使用不同的内核模块提供了对应的devm_xxx接口,如下(不仅仅这些): MEM devm_kmalloc() devm_kzalloc() devm_kcalloc(...) devm_kmalloc_array() devm_kstrdup() devm_kfree()...