[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120702085911.GA16639@n2100.arm.linux.org.uk>
Date: Mon, 2 Jul 2012 09:59:11 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Ohad Ben-Cohen <ohad@...ery.com>
Cc: Stephen Boyd <sboyd@...eaurora.org>, linux-omap@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Fernando Guzman Lugo <fernando.lugo@...com>
Subject: Re: [PATCH 2/2] remoteproc: remove the now-redundant kref
On Mon, Jul 02, 2012 at 11:52:27AM +0300, Ohad Ben-Cohen wrote:
> Simplify the unregister/free interfaces, and make them easier
> to understand and use, by moving to a symmetric and consistent
> alloc() -> register() -> unregister() -> free() flow.
The naming in the driver model is:
alloc() -> add() -> del() -> put()
where alloc() is an allocation + initialization, and
register() -> unregister()
where register() is initialization + add() and
unregister() is del() + put().
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists