How to get linux kernel page size programmatically

前端 未结 7 1435
悲哀的现实
悲哀的现实 2021-01-31 07:56

I am working on a Linux module for IA64. My current problem is that the driver uses the PAGE_SIZE and PAGE_SHIFT macros for dma page allocation. The problem I am having is tha

相关标签:
7条回答
  • 2021-01-31 09:02

    I fear that it is impossible to do as page size is something defined as part of the kernel. page size knowledge is required in case of toolchain also which you use to compile the kernel module.

    So atleast with current kernel architecture, it is impossible to do so.

    0 讨论(0)
提交回复
热议问题