mtd/include/linux/mtd blktrans.h,1.4,1.5
David Woodhouse
dwmw2 at infradead.org
Mon Jun 23 08:00:11 EDT 2003
- Previous message: mtd/drivers/mtd ftl.c,1.50,1.51 inftlcore.c,1.10,1.11
mtd_blkdevs-24.c,1.10,1.11 mtd_blkdevs.c,1.14,1.15
mtdblock.c,1.62,1.63 mtdblock_ro.c,1.17,1.18 nftlcore.c,1.93,1.94
- Next message: mtd/drivers/mtd mtdblock-24.c,1.5,NONE mtdblock-25.c,1.2,NONE
mtdblock-core.c,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv18104/include/linux/mtd
Modified Files:
blktrans.h
Log Message:
From:Â Christoph Hellwig <hch at lst.de>
->open and ->release lose the totally pointless inode and file
arguments, ->ioctl gets replaced by ->getgeo and ->flush, removing
duplicated code from the individual drivers and avoiding to sneak
more ioctl mess.. :)
Index: blktrans.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/blktrans.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- blktrans.h 21 May 2003 01:01:32 -0000 1.4
+++ blktrans.h 23 Jun 2003 12:00:08 -0000 1.5
@@ -12,6 +12,7 @@
#include <asm/semaphore.h>
+struct hd_geometry;
struct mtd_info;
struct mtd_blktrans_ops;
struct file;
@@ -42,17 +43,13 @@
int (*writesect)(struct mtd_blktrans_dev *dev,
unsigned long block, char *buffer);
- /* HDIO_GETGEO and HDIO_GETGEO_BIG are the only non-private
- ioctls which are expected to be passed through */
- int (*ioctl)(struct mtd_blktrans_dev *dev,
- struct inode * inode, struct file * file,
- unsigned int cmd, unsigned long arg);
+ /* Block layer ioctls */
+ int (*getgeo)(struct mtd_blktrans_dev *dev, struct hd_geometry *geo);
+ int (*flush)(struct mtd_blktrans_dev *dev);
/* Called with mtd_table_mutex held; no race with add/remove */
- int (*open)(struct mtd_blktrans_dev *dev,
- struct inode *i, struct file *f);
- int (*release)(struct mtd_blktrans_dev *dev,
- struct inode *i, struct file *f);
+ int (*open)(struct mtd_blktrans_dev *dev);
+ int (*release)(struct mtd_blktrans_dev *dev);
/* Called on {de,}registration and on subsequent addition/removal
of devices, with mtd_table_mutex held. */
- Previous message: mtd/drivers/mtd ftl.c,1.50,1.51 inftlcore.c,1.10,1.11
mtd_blkdevs-24.c,1.10,1.11 mtd_blkdevs.c,1.14,1.15
mtdblock.c,1.62,1.63 mtdblock_ro.c,1.17,1.18 nftlcore.c,1.93,1.94
- Next message: mtd/drivers/mtd mtdblock-24.c,1.5,NONE mtdblock-25.c,1.2,NONE
mtdblock-core.c,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list