Release 4.18 include/linux/bsg.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_BSG_H
#define _LINUX_BSG_H
#include <uapi/linux/bsg.h>
struct request;
#ifdef CONFIG_BLK_DEV_BSG
struct bsg_ops {
int (*check_proto)(struct sg_io_v4 *hdr);
int (*fill_hdr)(struct request *rq, struct sg_io_v4 *hdr,
fmode_t mode);
int (*complete_rq)(struct request *rq, struct sg_io_v4 *hdr);
void (*free_rq)(struct request *rq);
};
struct bsg_class_device {
struct device *class_dev;
int minor;
struct request_queue *queue;
const struct bsg_ops *ops;
};
int bsg_register_queue(struct request_queue *q, struct device *parent,
const char *name, const struct bsg_ops *ops);
int bsg_scsi_register_queue(struct request_queue *q, struct device *parent);
void bsg_unregister_queue(struct request_queue *q);
#else
static inline int bsg_scsi_register_queue(struct request_queue *q,
struct device *parent)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
James Bottomley | 14 | 70.00% | 1 | 20.00% |
FUJITA Tomonori | 3 | 15.00% | 2 | 40.00% |
Jens Axboe | 2 | 10.00% | 1 | 20.00% |
Christoph Hellwig | 1 | 5.00% | 1 | 20.00% |
Total | 20 | 100.00% | 5 | 100.00% |
static inline void bsg_unregister_queue(struct request_queue *q)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
James Bottomley | 7 | 63.64% | 1 | 25.00% |
Jens Axboe | 2 | 18.18% | 1 | 25.00% |
FUJITA Tomonori | 2 | 18.18% | 2 | 50.00% |
Total | 11 | 100.00% | 4 | 100.00% |
#endif /* CONFIG_BLK_DEV_BSG */
#endif /* _LINUX_BSG_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Christoph Hellwig | 102 | 52.85% | 1 | 9.09% |
Jens Axboe | 39 | 20.21% | 1 | 9.09% |
James Bottomley | 25 | 12.95% | 2 | 18.18% |
FUJITA Tomonori | 22 | 11.40% | 3 | 27.27% |
Douglas Gilbert | 2 | 1.04% | 1 | 9.09% |
Greg Kroah-Hartman | 1 | 0.52% | 1 | 9.09% |
David Howells | 1 | 0.52% | 1 | 9.09% |
Tony Jones | 1 | 0.52% | 1 | 9.09% |
Total | 193 | 100.00% | 11 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.