Lines Matching refs:sd_kobj
39 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show()
47 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store()
304 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_sbd_release()
659 sdp->sd_kobj.kset = gfs2_kset; in gfs2_sys_fs_add()
660 error = kobject_init_and_add(&sdp->sd_kobj, &gfs2_ktype, NULL, in gfs2_sys_fs_add()
665 error = sysfs_create_group(&sdp->sd_kobj, &tune_group); in gfs2_sys_fs_add()
669 error = sysfs_create_group(&sdp->sd_kobj, &lock_module_group); in gfs2_sys_fs_add()
673 error = sysfs_create_link(&sdp->sd_kobj, in gfs2_sys_fs_add()
679 kobject_uevent_env(&sdp->sd_kobj, KOBJ_ADD, envp); in gfs2_sys_fs_add()
683 sysfs_remove_group(&sdp->sd_kobj, &lock_module_group); in gfs2_sys_fs_add()
685 sysfs_remove_group(&sdp->sd_kobj, &tune_group); in gfs2_sys_fs_add()
688 kobject_put(&sdp->sd_kobj); in gfs2_sys_fs_add()
696 sysfs_remove_link(&sdp->sd_kobj, "device"); in gfs2_sys_fs_del()
697 sysfs_remove_group(&sdp->sd_kobj, &tune_group); in gfs2_sys_fs_del()
698 sysfs_remove_group(&sdp->sd_kobj, &lock_module_group); in gfs2_sys_fs_del()
699 kobject_put(&sdp->sd_kobj); in gfs2_sys_fs_del()
706 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_uevent()