mem.h 842 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2002, 2003 Jeff Dike (jdike@addtoit.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __MEM_H__
  6. #define __MEM_H__
  7. #include "linux/types.h"
  8. extern int phys_mapping(unsigned long phys, __u64 *offset_out);
  9. extern int physmem_subst_mapping(void *virt, int fd, __u64 offset, int w);
  10. extern int is_remapped(void *virt);
  11. extern int physmem_remove_mapping(void *virt);
  12. extern void physmem_forget_descriptor(int fd);
  13. extern unsigned long to_phys(void *virt);
  14. #endif
  15. /*
  16. * Overrides for Emacs so that we follow Linus's tabbing style.
  17. * Emacs will notice this stuff at the end of the file and automatically
  18. * adjust the settings for this buffer only. This must remain at the end
  19. * of the file.
  20. * ---------------------------------------------------------------------------
  21. * Local variables:
  22. * c-file-style: "linux"
  23. * End:
  24. */