Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-srv-sysfs.c84 struct rnbd_srv_sess_dev *sess_dev; in read_only_show() local
86 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in read_only_show()
89 !(sess_dev->open_flags & FMODE_WRITE)); in read_only_show()
99 struct rnbd_srv_sess_dev *sess_dev; in access_mode_show() local
101 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in access_mode_show()
104 rnbd_access_mode_str(sess_dev->access_mode)); in access_mode_show()
113 struct rnbd_srv_sess_dev *sess_dev; in mapping_path_show() local
115 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in mapping_path_show()
117 return scnprintf(page, PAGE_SIZE, "%s\n", sess_dev->pathname); in mapping_path_show()
134 void rnbd_srv_destroy_dev_session_sysfs(struct rnbd_srv_sess_dev *sess_dev) in rnbd_srv_destroy_dev_session_sysfs() argument
[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 = rnbd_priv->sess_dev; in rnbd_endio() local
92 rnbd_put_sess_dev(sess_dev); in rnbd_endio()
102 struct rnbd_srv_sess_dev *sess_dev; in rnbd_get_sess_dev() local
106 sess_dev = xa_load(&srv_sess->index_idr, dev_id); in rnbd_get_sess_dev()
[all …]
Drnbd-srv.h72 int rnbd_srv_create_dev_session_sysfs(struct rnbd_srv_sess_dev *sess_dev);
73 void rnbd_srv_destroy_dev_session_sysfs(struct rnbd_srv_sess_dev *sess_dev);
76 void rnbd_destroy_sess_dev(struct rnbd_srv_sess_dev *sess_dev);