Direct Memory Access in Linux

前端 未结 5 2063
时光取名叫无心
时光取名叫无心 2020-11-30 20:12

I\'m trying to access physical memory directly for an embedded Linux project, but I\'m not sure how I can best designate memory for my use.

If I boot my device regul

5条回答
  •  旧时难觅i
    2020-11-30 20:59

    I am by far no expert on these matters, so this will be a question to you rather than an answer. Is there any reason you can't just make a small ram disk partition and use it only for your application? Would that not give you guaranteed access to the same chunk of memory? I'm not sure of there would be any I/O performance issues, or additional overhead associated with doing that. This also assumes that you can tell the kernel to partition a specific address range in memory, not sure if that is possible.

    I apologize for the newb question, but I found your question interesting, and am curious if ram disk could be used in such a way.

提交回复
热议问题