summaryrefslogtreecommitdiff
path: root/include/linux/cdrom.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-25 10:57:02 +0300
committerJens Axboe <axboe@kernel.dk>2020-05-04 19:13:42 +0300
commit4c3cfcce45152309c2031b3b87bcf10e4f3899e1 (patch)
tree9d18075f81436e458f0ab58e17151c5bce95e770 /include/linux/cdrom.h
parent068f8d9b4ecc90cfe30c643ba255f7d69b9eae78 (diff)
downloadlinux-4c3cfcce45152309c2031b3b87bcf10e4f3899e1.tar.xz
cdrom: factor out a cdrom_read_tocentry helper
Factor out a version of the CDROMREADTOCENTRY ioctl handler that can be called directly from kernel space. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/cdrom.h')
-rw-r--r--include/linux/cdrom.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h
index 4f74ce050253..008c4d79fa33 100644
--- a/include/linux/cdrom.h
+++ b/include/linux/cdrom.h
@@ -94,6 +94,9 @@ struct cdrom_device_ops {
struct packet_command *);
};
+int cdrom_read_tocentry(struct cdrom_device_info *cdi,
+ struct cdrom_tocentry *entry);
+
/* the general block_device operations structure: */
extern int cdrom_open(struct cdrom_device_info *cdi, struct block_device *bdev,
fmode_t mode);