mem.h 800 B

12345678910111213141516171819202122232425262728
  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. #endif
  14. /*
  15. * Overrides for Emacs so that we follow Linus's tabbing style.
  16. * Emacs will notice this stuff at the end of the file and automatically
  17. * adjust the settings for this buffer only. This must remain at the end
  18. * of the file.
  19. * ---------------------------------------------------------------------------
  20. * Local variables:
  21. * c-file-style: "linux"
  22. * End:
  23. */