  kset

 kset     kobject. 
kset       , , " -
 ".  kset     ktype,   :

"     ?"  kset  
 kobject,   ktype   ,   
 kobject  .    
  ktype    kset.

 kset  kobject       -
 kset.   kset     kset,
    <linux/koject .h>  .

struct kset {

struct subsystem         *subsys;

struct kobj type         *ktype;

struct list head         list;

struct kobject           kobj;

struct kset hotplug ops *hotplug_ops;

};

 ktype    ktype,     -
  ,  list     kobject  -
,  kobj   kobject,      
  ,   hotplug_ops   , 
   kobject    , -
   .

,  sybsys    struct subsystem,  -
    kset.



      
       kset.  kset -
  kobject,    kset,    -
     ,     kobject 
.  kset       
 .

    ,      -
   struct subsystem.

struct subsystem {

struct kset              kset;

struct rw semaphore      rwsem;

};              -

 subsystem     kset,    -
  kset      subsystem  

358  17