Re: Memory mapping with character device

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

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux