Allocating more than 4 MB of pinned contiguous memory in the Linux Kernel

前端 未结 2 568
说谎
说谎 2021-01-31 05:25

For some interaction with a PCI device that is being built, we\'d like to create large contiguous pieces of memory that the board can access. As it stands now, the largest piece

2条回答
  •  佛祖请我去吃肉
    2021-01-31 05:33

    If you can compile your PCI device driver into the kernel (that is, not linked as a module), you could try allocating the memory at boot time. That should let you bypass the upper bounds on dynamic allocations. Refer to Linux Device Drivers, ed. 3 ch. 8 for details.

提交回复
热议问题