kobject_init_and_add - initialize a kobject structure and add it to the kobject hierarchy
2. SYNOPSIS ▲
int kobject_init_and_add(struct kobject * kobj , struct kobj_type * ktype , struct kobject * parent , const char * fmt , ... );
3. ARGUMENTS ▲
pointer to the kobject to initialize
pointer to the ktype for this kobject.
pointer to the parent of this kobject.
the name of the kobject.
4. DESCRIPTION ▲
This function combines the call to kobject_init and kobject_add. The same type of error handling after a call to kobject_add and kobject lifetime rules are the same here.
5. COPYRIGHT ▲