vmregion.h 730 B

1234567891011121314151617181920212223242526272829
  1. #ifndef VMREGION_H
  2. #define VMREGION_H
  3. #include <linux/spinlock.h>
  4. #include <linux/list.h>
  5. struct page;
  6. struct arm_vmregion_head {
  7. spinlock_t vm_lock;
  8. struct list_head vm_list;
  9. unsigned long vm_start;
  10. unsigned long vm_end;
  11. };
  12. struct arm_vmregion {
  13. struct list_head vm_list;
  14. unsigned long vm_start;
  15. unsigned long vm_end;
  16. struct page *vm_pages;
  17. int vm_active;
  18. };
  19. struct arm_vmregion *arm_vmregion_alloc(struct arm_vmregion_head *, size_t, size_t, gfp_t);
  20. struct arm_vmregion *arm_vmregion_find(struct arm_vmregion_head *, unsigned long);
  21. struct arm_vmregion *arm_vmregion_find_remove(struct arm_vmregion_head *, unsigned long);
  22. void arm_vmregion_free(struct arm_vmregion_head *, struct arm_vmregion *);
  23. #endif