mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Direct access to IDE disk from kernel modules
@ 2002-04-15  9:19 Enrico BRAVIN
  2002-04-15  9:44 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Enrico BRAVIN @ 2002-04-15  9:19 UTC (permalink / raw)
  To: linux-kernel

Hi,
Is there a way to directly dump a buffer on an IDE disk from inside a 
kernel module without goig trough user space?
I have written a driver for a frame grabber and would like be able to 
dump the frames real time directly to a dedicated IDE disk.
My frames are already in a DMAble buffer.

Please cc my directly


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

* Re: Direct access to IDE disk from kernel modules
  2002-04-15  9:19 Direct access to IDE disk from kernel modules Enrico BRAVIN
@ 2002-04-15  9:44 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2002-04-15  9:44 UTC (permalink / raw)
  To: Enrico BRAVIN; +Cc: linux-kernel

> Is there a way to directly dump a buffer on an IDE disk from inside a 
> kernel module without goig trough user space?
> I have written a driver for a frame grabber and would like be able to 
> dump the frames real time directly to a dedicated IDE disk.
> My frames are already in a DMAble buffer.

You can get the same effect going via user space just fine, and the
performance of IDE is well below the point that should make a difference
since PCI bandwidth is likely to be your bottleneck.

mmap the capture buffers into a user application (eg video4linux api), then
write the files using the O_DIRECT option or a raw device (see rawctl and
friends)

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

end of thread, other threads:[~2002-04-15  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-15  9:19 Direct access to IDE disk from kernel modules Enrico BRAVIN
2002-04-15  9:44 ` Alan Cox

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®