2.4.1 Block Driver and mmap

Tim McDaniel (tim.mcdaniel@tuxia.com)
Wed, 13 Mar 2002 05:12:23 +0100


I'm porting a working 2.2 driver to 2.4 . Unfortunately, the mmap
entry point is not defined in the block_device_operations. I've tried
forcing filp->f_op to an initialized file operations structure while
also registering the driver with block operations (as does the ramdisk
driver). My mmap routine is entered and appears to work, but now the
rest of the driver is experiencing strange failures such as:

1) errno 25 (decimal) on an ioctl that used to work even in 2.4
2) fsck fails with a short read error

Without the change for filep->f_op, the mmap fails with errno 19
decimal.

My driver sits between the file system and the low level block driver
and funnels ata commands in a manner that is more fair and thus more
appropriate for a PVR implementation.

Any help would be greatly appreciated.

Thanks,
Tim
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/