db_ipc.c 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_freebsd_defs.h"
  22. #include "pal.h"
  23. #include "pal_internal.h"
  24. #include "pal_freebsd.h"
  25. #include "pal_error.h"
  26. #include "pal_security.h"
  27. #include "api.h"
  28. #include <fcntl.h>
  29. #include <sched.h>
  30. int gipc_open (PAL_HANDLE * handle, const char * type, const char * uri,
  31. int access, int share, int create, int options)
  32. {
  33. return -PAL_ERROR_NOTIMPLEMENTED;
  34. }
  35. int gipc_close (PAL_HANDLE handle)
  36. {
  37. return 0;
  38. }
  39. const char * gipc_getrealpath (PAL_HANDLE handle)
  40. {
  41. return NULL;
  42. }
  43. struct handle_ops gipc_ops = {
  44. .getrealpath = &gipc_getrealpath,
  45. .open = &gipc_open,
  46. .close = &gipc_close,
  47. };
  48. int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, unsigned long * key)
  49. {
  50. return -PAL_ERROR_NOTIMPLEMENTED;
  51. }
  52. int _DkPhysicalMemoryCommit (PAL_HANDLE channel, int entries,
  53. PAL_PTR * addrs, PAL_NUM * sizes, int flags)
  54. {
  55. return -PAL_ERROR_NOTIMPLEMENTED;
  56. }
  57. int _DkPhysicalMemoryMap (PAL_HANDLE channel, int entries,
  58. PAL_PTR * addrs, PAL_NUM * sizes, PAL_FLG * prots)
  59. {
  60. return -PAL_ERROR_NOTIMPLEMENTED;
  61. }