What's the difference b/w __raw_readl/__raw_writel and readl/writel in linux kernel?

前端 未结 1 381
广开言路
广开言路 2020-12-31 10:51

What\'s the difference b/w __raw_readl/__raw_writel and readl/writel in linux kernel? It is said readl/writel is safer than __ra

相关标签:
1条回答
  • 2020-12-31 11:27

    It seems to be the case that

    • raw denotes native byte ordering, non-raw means little-endian
    • the __ prefix alternatives don't include memory barriers

    See this LKML discussion and also the comments in linux/arch/arm/include/asm/io.h

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