Lines Matching refs:sd_kobj
42 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show()
50 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store()
305 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_sbd_release()
658 sdp->sd_kobj.kset = gfs2_kset; in gfs2_sys_fs_add()
659 error = kobject_init_and_add(&sdp->sd_kobj, &gfs2_ktype, NULL, in gfs2_sys_fs_add()
666 error = sysfs_create_group(&sdp->sd_kobj, &tune_group); in gfs2_sys_fs_add()
670 error = sysfs_create_group(&sdp->sd_kobj, &lock_module_group); in gfs2_sys_fs_add()
674 error = sysfs_create_link(&sdp->sd_kobj, in gfs2_sys_fs_add()
680 kobject_uevent_env(&sdp->sd_kobj, KOBJ_ADD, envp); in gfs2_sys_fs_add()
684 sysfs_remove_group(&sdp->sd_kobj, &lock_module_group); in gfs2_sys_fs_add()
686 sysfs_remove_group(&sdp->sd_kobj, &tune_group); in gfs2_sys_fs_add()
691 kobject_put(&sdp->sd_kobj); in gfs2_sys_fs_add()
700 sysfs_remove_link(&sdp->sd_kobj, "device"); in gfs2_sys_fs_del()
701 sysfs_remove_group(&sdp->sd_kobj, &tune_group); in gfs2_sys_fs_del()
702 sysfs_remove_group(&sdp->sd_kobj, &lock_module_group); in gfs2_sys_fs_del()
703 kobject_put(&sdp->sd_kobj); in gfs2_sys_fs_del()
709 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_uevent()