[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory mapping with character device



On 4/1/07, black hole <neyrith@xxxxxxxxx> wrote:
Hello,

I am trying to implement a simple character device that
implements the mmap() method (struct file_operations).
I can't get it work, the source code is appended.
[...]
static int mmap_fop(struct file *file, struct vm_area_struct *vma)
{
  // [...]

Commenting out the following line solves the problem.
vma->vm_flags=VM_RESERVED;

BlackHole


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ