cregit-Linux how code gets into the kernel

Release 4.17 include/linux/bsg.h

Directory: include/linux
/* 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;
	
struct device *parent;
	
int minor;
	
struct request_queue *queue;
	
struct kref ref;
	
const struct bsg_ops *ops;
	
void (*release)(struct device *);
};

int bsg_register_queue(struct request_queue *q, struct device *parent,
		const char *name, const struct bsg_ops *ops,
		void (*release)(struct device *));
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

PersonTokensPropCommitsCommitProp
James Bottomley1470.00%120.00%
FUJITA Tomonori315.00%240.00%
Jens Axboe210.00%120.00%
Christoph Hellwig15.00%120.00%
Total20100.00%5100.00%


static inline void bsg_unregister_queue(struct request_queue *q) { }

Contributors

PersonTokensPropCommitsCommitProp
James Bottomley763.64%125.00%
Jens Axboe218.18%125.00%
FUJITA Tomonori218.18%250.00%
Total11100.00%4100.00%

#endif /* CONFIG_BLK_DEV_BSG */ #endif /* _LINUX_BSG_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Christoph Hellwig10345.98%19.09%
FUJITA Tomonori4821.43%327.27%
Jens Axboe4319.20%19.09%
James Bottomley2511.16%218.18%
Douglas Gilbert20.89%19.09%
Tony Jones10.45%19.09%
Greg Kroah-Hartman10.45%19.09%
David Howells10.45%19.09%
Total224100.00%11100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.