kobject_create — create a struct kobject dynamically
struct kobject * kobject_create ( | void); |
This function creates a kobject structure dynamically and sets it up to be a “dynamic” kobject with a default release function set up.
If the kobject was not able to be created, NULL will be returned.
The kobject structure returned from here must be cleaned up with a
call to kobject_put and not kfree, as kobject_init has
already been called on this structure.