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_ATTRSto read the attribute. - If successful, copy the attribute from the shared memory to the buffer.
- Enable preemption (
put_cpu()).
sbi_mpxy_read_attrs()c
Loading...