Re: [PATCH] EDAC: core EDAC support code

Arjan van de Ven
2006-03-06T21:07:46Z

> Is it more desirable to dynamically allocate kobjects than to declare
> them statically?

Yes

> If so, I'd be curious to know why dynamic
> allocation is preferred over static allocation.

because the lifetime of the kobject is independent of the lifetime of
the memory of your static allocation.
Separate lifetimes -> separate memory is a very good design principle.