[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180410071051.GA19397@kroah.com>
Date: Tue, 10 Apr 2018 09:10:51 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
Cc: Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH 1/2] kobject: add kobject_read()
On Tue, Apr 10, 2018 at 06:53:50AM +0000, Kuninori Morimoto wrote:
>
> From: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
>
> We are counting kobject by using kobject_get/put(), but
> not have kobject_read() which can be used to check count.
> Let's add
No, please do not. You should never care about this "count", and if we
do provide this, people will abuse it.
I understand that this might make some debugging harder, but if you
really need to write custom debugging code, then just use the internal
values.
sorry,
greg k-h
Powered by blists - more mailing lists