What's tha KOBJ_MAX action used for?

Greg KH greg at kroah.com
Mon Jul 13 08:35:23 EDT 2020


On Mon, Jul 13, 2020 at 01:17:25PM +0200, Garrit Franke wrote:
> Hi all,
> 
> I was wondering, what the KOBJ_MAX action in the kobject.h file does. 
> It is self explainatory what KOBJ_ADD, KOBJ_REMOVE etc. are used for, but KOBJ_MAX puzzles me.
> 
> On top of that, it is never referenced somewhere in the sourcecode (https://elixir.bootlin.com/linux/v5.7.8/C/ident/KOBJ_MAX).
> 
> Can it maybe even be removed?

Maybe it can, try it and see!

greg k-h



More information about the Kernelnewbies mailing list