Re: [RFC 7/8] TILER-DMM: Main TILER driver implementation.

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

 



>> +s32 tiler_mmap_blk(struct tiler_block_t *blk, u32 offs, u32 size,
>> +                             struct vm_area_struct *vma, u32 voffs)
>> +{
>> +     u32 v, p, len;
>> +
>> +     /* don't allow mremap */
>> +     vma->vm_flags |= VM_DONTEXPAND | VM_RESERVED;
> Should we add " VM_LOCKED" as well considering the page swapping  ?

-- VM_RESERVED serves this purpose right ?

>> +
>> +     /* mapping must fit into vma */
>> +     BUG_ON(vma->vm_start > vma->vm_start + voffs ||
>> +             vma->vm_start + voffs > vma->vm_start + voffs + size ||
>> +             vma->vm_start + voffs + size > vma->vm_end);

Hari
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux