mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.4.1 Block Driver and mmap
@ 2002-03-13  4:12 Tim McDaniel
  2002-03-13 15:58 ` Tommy Reynolds
  0 siblings, 1 reply; 2+ messages in thread
From: Tim McDaniel @ 2002-03-13  4:12 UTC (permalink / raw)
  To: linux-kernel


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.4.1 Block Driver and mmap
  2002-03-13  4:12 2.4.1 Block Driver and mmap Tim McDaniel
@ 2002-03-13 15:58 ` Tommy Reynolds
  0 siblings, 0 replies; 2+ messages in thread
From: Tommy Reynolds @ 2002-03-13 15:58 UTC (permalink / raw)
  To: Tim McDaniel; +Cc: linux-kernel

Uttered "Tim McDaniel" <tim.mcdaniel@tuxia.com>, spoke thus:

>  I'm porting a working 2.2 driver to 2.4 .   Unfortunately, the mmap
>  entry point is not defined in the block_device_operations.

You can't just frob around with this.  2.2 is not 2.4, so first check this:

	http://www.xml.com/ldd/chapter/book/index.html

for Rubini and Corbets Linux Device Drivers, 2nd Ed.  Buy a copy.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-13 15:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-13  4:12 2.4.1 Block Driver and mmap Tim McDaniel
2002-03-13 15:58 ` Tommy Reynolds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®