What's tha KOBJ_MAX action used for?

Garrit Franke garritfranke at gmail.com
Mon Jul 13 07:17:25 EDT 2020


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?

Regards,
Garrit Franke



More information about the Kernelnewbies mailing list