Home
last modified time | relevance | path

Searched refs:sess_dev (Results 1 – 3 of 3) sorted by relevance

/drivers/block/rnbd/
Drnbd-srv-sysfs.c87 struct rnbd_srv_sess_dev *sess_dev; in read_only_show() local
89 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in read_only_show()
92 !(sess_dev->open_flags & FMODE_WRITE)); in read_only_show()
102 struct rnbd_srv_sess_dev *sess_dev; in access_mode_show() local
104 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in access_mode_show()
107 rnbd_access_mode_str(sess_dev->access_mode)); in access_mode_show()
116 struct rnbd_srv_sess_dev *sess_dev; in mapping_path_show() local
118 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in mapping_path_show()
120 return sysfs_emit(page, "%s\n", sess_dev->pathname); in mapping_path_show()
137 struct rnbd_srv_sess_dev *sess_dev; in rnbd_srv_dev_session_force_close_store() local
[all …]
Drnbd-srv.c71 struct rnbd_srv_sess_dev *sess_dev; member
76 struct rnbd_srv_sess_dev *sess_dev; in rnbd_sess_dev_release() local
78 sess_dev = container_of(kref, struct rnbd_srv_sess_dev, kref); in rnbd_sess_dev_release()
79 complete(sess_dev->destroy_comp); in rnbd_sess_dev_release()
82 static inline void rnbd_put_sess_dev(struct rnbd_srv_sess_dev *sess_dev) in rnbd_put_sess_dev() argument
84 kref_put(&sess_dev->kref, rnbd_sess_dev_release); in rnbd_put_sess_dev()
90 struct rnbd_srv_sess_dev *sess_dev; in rnbd_get_sess_dev() local
94 sess_dev = xa_load(&srv_sess->index_idr, dev_id); in rnbd_get_sess_dev()
95 if (sess_dev) in rnbd_get_sess_dev()
96 ret = kref_get_unless_zero(&sess_dev->kref); in rnbd_get_sess_dev()
[all …]
Drnbd-srv.h62 void rnbd_srv_sess_dev_force_close(struct rnbd_srv_sess_dev *sess_dev,
69 int rnbd_srv_create_dev_session_sysfs(struct rnbd_srv_sess_dev *sess_dev);
70 void rnbd_srv_destroy_dev_session_sysfs(struct rnbd_srv_sess_dev *sess_dev);
73 void rnbd_destroy_sess_dev(struct rnbd_srv_sess_dev *sess_dev, bool keep_id);