1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <uapi/linux/bsg.h>
8 #if defined(CONFIG_BLK_DEV_BSG)
9 struct bsg_class_device
{
10 struct device
*class_dev
;
11 struct device
*parent
;
13 struct request_queue
*queue
;
15 void (*release
)(struct device
*);
18 extern int bsg_register_queue(struct request_queue
*q
,
19 struct device
*parent
, const char *name
,
20 void (*release
)(struct device
*));
21 extern void bsg_unregister_queue(struct request_queue
*);
23 static inline int bsg_register_queue(struct request_queue
*q
,
24 struct device
*parent
, const char *name
,
25 void (*release
)(struct device
*))
29 static inline void bsg_unregister_queue(struct request_queue
*q
)