db_ipc.c 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.h"
  19. #include "pal_defs.h"
  20. #include "pal_error.h"
  21. #include "pal_internal.h"
  22. #include "pal_linux_defs.h"
  23. /* Mute warning for the file with all unimplemented functions
  24. * Remove the following pragma when implementing the functions
  25. */
  26. #pragma GCC diagnostic push
  27. #pragma GCC diagnostic ignored "-Wunused-parameter"
  28. int gipc_open(PAL_HANDLE* handle, const char* type, const char* uri, int access, int share,
  29. int create, int options) {
  30. return -PAL_ERROR_NOTIMPLEMENTED;
  31. }
  32. int gipc_close(PAL_HANDLE handle) {
  33. return -PAL_ERROR_NOTIMPLEMENTED;
  34. }
  35. const char* gipc_getrealpath(PAL_HANDLE handle) {
  36. return NULL;
  37. }
  38. struct handle_ops gipc_ops = {
  39. .getrealpath = &gipc_getrealpath,
  40. .open = &gipc_open,
  41. .close = &gipc_close,
  42. };
  43. int _DkCreatePhysicalMemoryChannel(PAL_HANDLE* handle, uint64_t* key) {
  44. return -PAL_ERROR_NOTIMPLEMENTED;
  45. }
  46. int _DkPhysicalMemoryCommit(PAL_HANDLE channel, int entries, PAL_PTR* addrs, PAL_NUM* sizes) {
  47. return -PAL_ERROR_NOTIMPLEMENTED;
  48. }
  49. int _DkPhysicalMemoryMap(PAL_HANDLE channel, int entries, PAL_PTR* addrs, PAL_NUM* sizes,
  50. PAL_FLG* prots) {
  51. return -PAL_ERROR_NOTIMPLEMENTED;
  52. }
  53. #pragma GCC diagnostic pop