[lkml]   [1998]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: mmap RAM?
From said:
> I am trying to write a driver for a new device. It is an MPEG2 video
> *encoder*. The device sits on a PCI bus. It wants to DMA encoded
> video to the host RAM.

It works a page at a time because the kernel does lazy mapping, and anyhow
may choose to forget random pages at random times. You also need to go
through some of the other hoops to keep module reference counts correct.
Take a look at the example at the above ftp site.

Also, note that you cannot either the device must scatter-gather, or
you use something like bigphysarea to get large contiguous buffers.
Steve Williams "The woods are lovely, dark and deep. But I have promises to keep, and lines to code before I sleep, And lines to code before I sleep."

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to

 \ /
  Last update: 2005-03-22 13:41    [W:0.036 / U:2.472 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site