[PATCH] mtdcore: Infrastructure for the device release API

Brian Norris computersforpeace at gmail.com
Fri May 26 17:13:23 PDT 2017


On Thu, May 18, 2017 at 10:23:11AM +0100, Martin Habets wrote:
> This API adds a cleanup callback for the user of an MTD device.
> Normally they will have allocated the mtd_info structure, and using
> this callback they can free that memory when the last reference is
> dropped.

Can you provide an example user? This callback is meaningless (and won't
be merged) if it has no users.

> CONFIG_DEBUG_KOBJECT_RELEASE can be used to detect users that free
> the memory too early.

Are there any such users?

> The information contained in this message is confidential and is
> intended for the addressee(s) only. If you have received this message
> in error, please notify the sender immediately and delete the message.
> Unless you are an addressee (or authorized to receive for an
> addressee), you may not use, copy or disclose to anyone this message
> or any information contained in this message. The unauthorized use,
> disclosure, copying or alteration of this message is strictly
> prohibited.

Nice.

Brian



More information about the linux-mtd mailing list