vmregion.h 829 B

123456789101112131415161718192021222324252627282930313233
  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. void *priv;
  17. int vm_active;
  18. const void *caller;
  19. };
  20. struct arm_vmregion *arm_vmregion_alloc(struct arm_vmregion_head *, size_t, size_t, gfp_t, const void *);
  21. struct arm_vmregion *arm_vmregion_find(struct arm_vmregion_head *, unsigned long);
  22. struct arm_vmregion *arm_vmregion_find_remove(struct arm_vmregion_head *, unsigned long);
  23. void arm_vmregion_free(struct arm_vmregion_head *, struct arm_vmregion *);
  24. int arm_vmregion_create_proc(const char *, struct arm_vmregion_head *);
  25. #endif