4 #include <uapi/linux/bsg.h>
7 #if defined(CONFIG_BLK_DEV_BSG)
8 struct bsg_class_device
{
9 struct device
*class_dev
;
10 struct device
*parent
;
12 struct request_queue
*queue
;
14 void (*release
)(struct device
*);
17 extern int bsg_register_queue(struct request_queue
*q
,
18 struct device
*parent
, const char *name
,
19 void (*release
)(struct device
*));
20 extern void bsg_unregister_queue(struct request_queue
*);
22 static inline int bsg_register_queue(struct request_queue
*q
,
23 struct device
*parent
, const char *name
,
24 void (*release
)(struct device
*))
28 static inline void bsg_unregister_queue(struct request_queue
*q
)