| #include <uapi/linux/bsg.h> |
| #if defined(CONFIG_BLK_DEV_BSG) |
| struct bsg_class_device { |
| struct device *class_dev; |
| struct request_queue *queue; |
| void (*release)(struct device *); |
| extern int bsg_register_queue(struct request_queue *q, |
| struct device *parent, const char *name, |
| void (*release)(struct device *)); |
| extern void bsg_unregister_queue(struct request_queue *); |
| static inline int bsg_register_queue(struct request_queue *q, |
| struct device *parent, const char *name, |
| void (*release)(struct device *)) |
| static inline void bsg_unregister_queue(struct request_queue *q) |