db_ipc.c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. /* Copyright (C) 2014 OSCAR lab, Stony Brook University
  4. This file is part of Graphene Library OS.
  5. Graphene Library OS is free software: you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. Graphene Library OS is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. /*
  16. * db_ipc.c
  17. *
  18. * This file contains APIs for physical memory bulk copy across processes.
  19. */
  20. #include "pal_defs.h"
  21. #include "pal.h"
  22. #include "pal_internal.h"
  23. #include "pal_error.h"
  24. #include "pal_security.h"
  25. #include "graphene-ipc.h"
  26. #include "api.h"
  27. int gipc_open (PAL_HANDLE * handle, const char * type, const char * uri,
  28. int access, int share, int create, int options)
  29. {
  30. return -PAL_ERROR_NOTIMPLEMENTED;
  31. }
  32. int gipc_close (PAL_HANDLE handle)
  33. {
  34. return -PAL_ERROR_NOTIMPLEMENTED;
  35. }
  36. const char * gipc_getrealpath (PAL_HANDLE handle)
  37. {
  38. return -PAL_ERROR_NOTIMPLEMENTED;
  39. }
  40. struct handle_ops gipc_ops = {
  41. .getrealpath = &gipc_getrealpath,
  42. .open = &gipc_open,
  43. .close = &gipc_close,
  44. };
  45. int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, unsigned long * key)
  46. {
  47. return -PAL_ERROR_NOTIMPLEMENTED;
  48. }
  49. int _DkPhysicalMemoryCommit (PAL_HANDLE channel, int entries, const void ** addrs,
  50. unsigned long * sizes, int flags)
  51. {
  52. return -PAL_ERROR_NOTIMPLEMENTED;
  53. }
  54. int _DkPhysicalMemoryMap (PAL_HANDLE channel, int entries, const void ** addrs,
  55. unsigned long * sizes, unsigned int * prots)
  56. {
  57. return -PAL_ERROR_NOTIMPLEMENTED;
  58. }