ublk_device
static inline bool ublk_dev_need_get_data(const struct ublk_device *ub)
static noinline struct ublk_device *ublk_get_device(struct ublk_device *ub)
static noinline void ublk_put_device(struct ublk_device *ub)
static inline struct ublk_queue *ublk_get_queue(struct ublk_device *dev,
ublk_queue_cmd_buf(struct ublk_device *ub, int q_id)
static inline int ublk_queue_cmd_buf_size(struct ublk_device *ub)
static inline bool ublk_nosrv_should_reissue_outstanding(struct ublk_device *ub)
static inline bool ublk_nosrv_dev_should_queue_io(struct ublk_device *ub)
static inline bool ublk_nosrv_should_stop_dev(struct ublk_device *ub)
static inline bool ublk_dev_in_recoverable_state(struct ublk_device *ub)
struct ublk_device *ub = disk->private_data;
struct ublk_device *ub = disk->private_data;
struct ublk_device *ub;
struct ublk_device *ub = data->ub;
struct ublk_device *ub = driver_data;
static void ublk_queue_reinit(struct ublk_device *ub, struct ublk_queue *ubq)
struct ublk_device *ub = container_of(inode->i_cdev,
struct ublk_device, cdev);
static void ublk_reset_ch_dev(struct ublk_device *ub)
static struct gendisk *ublk_get_disk(struct ublk_device *ub)
struct ublk_device *ub =
container_of(work, struct ublk_device, partition_scan_work);
static void ublk_set_canceling(struct ublk_device *ub, bool canceling)
static bool ublk_check_and_reset_active_ref(struct ublk_device *ub)
struct ublk_device *dev;
struct ublk_device *ub =
container_of(work, struct ublk_device, exit_work.work);
struct ublk_device *ub = filp->private_data;
struct ublk_device *ub = filp->private_data;
static void __ublk_fail_req(struct ublk_device *ub, struct ublk_io *io,
static void ublk_abort_batch_queue(struct ublk_device *ub,
static void ublk_abort_queue(struct ublk_device *ub, struct ublk_queue *ubq)
static void ublk_start_cancel(struct ublk_device *ub)
struct ublk_device *ub = ubq->dev;
static inline bool ublk_dev_ready(const struct ublk_device *ub)
static void ublk_cancel_dev(struct ublk_device *ub)
static void ublk_wait_tagset_rqs_idle(struct ublk_device *ub)
static void ublk_force_abort_dev(struct ublk_device *ub)
static struct gendisk *ublk_detach_disk(struct ublk_device *ub)
static void ublk_stop_dev_unlocked(struct ublk_device *ub)
static void ublk_stop_dev(struct ublk_device *ub)
static void ublk_mark_io_ready(struct ublk_device *ub, u16 q_id)
ublk_config_io_buf(const struct ublk_device *ub, struct ublk_io *io,
struct ublk_device *ub,
struct ublk_device *ub,
const struct ublk_device *ub,
static int ublk_check_fetch_buf(const struct ublk_device *ub, __u64 buf_addr)
static int __ublk_fetch(struct io_uring_cmd *cmd, struct ublk_device *ub,
static int ublk_fetch(struct io_uring_cmd *cmd, struct ublk_device *ub,
static int ublk_check_commit_and_fetch(const struct ublk_device *ub,
static bool ublk_need_complete_req(const struct ublk_device *ub,
struct ublk_device *ub = cmd->file->private_data;
static void ublk_stop_dev_unlocked(struct ublk_device *ub);
static void ublk_abort_queue(struct ublk_device *ub, struct ublk_queue *ubq);
static inline struct request *__ublk_check_and_get_req(struct ublk_device *ub,
static inline struct request *__ublk_check_and_get_req(struct ublk_device *ub,
static inline bool ublk_dev_support_batch_io(const struct ublk_device *ub)
struct ublk_device *ub = cmd->file->private_data;
struct ublk_device *ub = cmd->file->private_data;
struct ublk_device *ub = iocb->ki_filp->private_data;
static inline bool ublk_dev_support_zero_copy(const struct ublk_device *ub)
static void __ublk_deinit_queue(struct ublk_device *ub, struct ublk_queue *ubq)
static inline bool ublk_dev_support_auto_buf_reg(const struct ublk_device *ub)
static void ublk_deinit_queue(struct ublk_device *ub, int q_id)
static int ublk_get_queue_numa_node(struct ublk_device *ub, int q_id)
static int ublk_init_queue(struct ublk_device *ub, int q_id)
static void ublk_deinit_queues(struct ublk_device *ub)
static int ublk_init_queues(struct ublk_device *ub)
static inline bool ublk_dev_support_user_copy(const struct ublk_device *ub)
static int ublk_alloc_dev_number(struct ublk_device *ub, int idx)
static void ublk_free_dev_number(struct ublk_device *ub)
struct ublk_device *ub = container_of(dev, struct ublk_device, cdev_dev);
static inline bool ublk_dev_is_zoned(const struct ublk_device *ub)
static int ublk_add_chdev(struct ublk_device *ub)
static void ublk_align_max_io_size(struct ublk_device *ub)
static int ublk_add_tag_set(struct ublk_device *ub)
static void ublk_remove(struct ublk_device *ub)
static struct ublk_device *ublk_get_device_from_id(int idx)
struct ublk_device *ub = NULL;
static bool ublk_validate_user_pid(struct ublk_device *ub, pid_t ublksrv_pid)
static int ublk_ctrl_start_dev(struct ublk_device *ub,
static inline bool ublk_dev_support_integrity(const struct ublk_device *ub)
static int ublk_ctrl_get_queue_affinity(struct ublk_device *ub,
struct ublk_device *ub;
static int ublk_get_nr_zones(const struct ublk_device *ub)
static int ublk_ctrl_del_dev(struct ublk_device **p_ub, bool wait)
struct ublk_device *ub = *p_ub;
static int ublk_revalidate_disk_zones(struct ublk_device *ub)
static void ublk_ctrl_stop_dev(struct ublk_device *ub)
static int ublk_ctrl_try_stop_dev(struct ublk_device *ub)
static int ublk_dev_param_zoned_validate(const struct ublk_device *ub)
static int ublk_ctrl_get_dev_info(struct ublk_device *ub,
static void ublk_ctrl_fill_params_devt(struct ublk_device *ub)
static int ublk_ctrl_get_params(struct ublk_device *ub,
static int ublk_ctrl_set_params(struct ublk_device *ub,
static int ublk_ctrl_start_recovery(struct ublk_device *ub)
static int ublk_ctrl_end_recovery(struct ublk_device *ub,
static void ublk_dev_param_zoned_apply(struct ublk_device *ub)
static int ublk_ctrl_set_size(struct ublk_device *ub, const struct ublksrv_ctrl_cmd *header)
static int ublk_wait_for_idle_io(struct ublk_device *ub,
static void *ublk_alloc_report_buffer(struct ublk_device *ublk,
static int ublk_ctrl_quiesce_dev(struct ublk_device *ub,
static int ublk_char_dev_permission(struct ublk_device *ub,
static int ublk_ctrl_uring_cmd_permission(struct ublk_device *ub,
struct ublk_device *ub = NULL;
struct ublk_device *ub = disk->private_data;
struct ublk_device *ub;
static int ublk_dev_param_zoned_validate(const struct ublk_device *ub)
static void ublk_dev_param_zoned_apply(struct ublk_device *ub)
static int ublk_revalidate_disk_zones(struct ublk_device *ub)
static void ublk_dev_param_basic_apply(struct ublk_device *ub)
static int ublk_validate_params(const struct ublk_device *ub)
static void ublk_apply_params(struct ublk_device *ub)
static inline bool ublk_dev_need_map_io(const struct ublk_device *ub)
static inline bool ublk_dev_need_req_ref(const struct ublk_device *ub)