mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
607ca46e97
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
33 lines
734 B
C
33 lines
734 B
C
#ifndef BSG_H
|
|
#define BSG_H
|
|
|
|
#include <uapi/linux/bsg.h>
|
|
|
|
|
|
#if defined(CONFIG_BLK_DEV_BSG)
|
|
struct bsg_class_device {
|
|
struct device *class_dev;
|
|
struct device *parent;
|
|
int minor;
|
|
struct request_queue *queue;
|
|
struct kref ref;
|
|
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 *);
|
|
#else
|
|
static inline int bsg_register_queue(struct request_queue *q,
|
|
struct device *parent, const char *name,
|
|
void (*release)(struct device *))
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void bsg_unregister_queue(struct request_queue *q)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif
|