Contiguous physical memory from userspace

后端 未结 4 2245
忘了有多久
忘了有多久 2020-11-27 07:27

Is there a way to allocate contiguous physical memory from userspace in linux? At least few guaranteed contiguous memory pages. One huge page isn\'t the answer.

4条回答
  •  青春惊慌失措
    2020-11-27 08:06

    if specific device driver exports dma buffer which is physical contiguous, user space can access through dma buf apis so user task can access but not allocate directly

    that is because physically contiguous constraints are not from user aplications but only from device so only device drivers should care.

提交回复
热议问题