db_ipc.c 2.0 KB

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