Lines Matching defs:dir
3142 struct class_dir *dir = to_class_dir(kobj);
3143 kfree(dir);
3149 const struct class_dir *dir = to_class_dir(kobj);
3150 return dir->class->ns_type;
3162 struct class_dir *dir;
3165 dir = kzalloc(sizeof(*dir), GFP_KERNEL);
3166 if (!dir)
3169 dir->class = sp->class;
3170 kobject_init(&dir->kobj, &class_dir_ktype);
3172 dir->kobj.kset = &sp->glue_dirs;
3174 retval = kobject_add(&dir->kobj, parent_kobj, "%s", sp->class->name);
3176 kobject_put(&dir->kobj);
3179 return &dir->kobj;
3289 return kobj->sd && kobj->sd->dir.subdirs;
3293 * make sure cleaning up dir as the last step, we need to make
3341 * Before CPU1 remove last child device under glue dir, if CPU2 add
3342 * a new device under glue dir, the glue_dir kobject reference count
3348 * glue dir around in kernfs_new_node().