sbi_mpxy_read_attrs()c
| 2024-10-19
本文字數 51閱讀時長 1 分鐘
  • sbi_mpxy_read_attrs()
    • Disable preemption (get_cpu()).
      • Shared memory is per-core. We only need to disable the preemption to prevent the shared memory of current CPU from being corrupted by the other tasks.
    • Issue SBI call: SBI_EXT_MPXY_READ_ATTRS to read the attribute.
    • If successful, copy the attribute from the shared memory to the buffer.
    • Enable preemption (put_cpu()).
Loading...
目錄