zoukankan      html  css  js  c++  java
  • kernel里的头文件 asm 与 asmgeneric

    asm的路径是 arch/xxx/include/asm/

    asm-generic 的路径是 include/asm-generic/


    代码中包含asm/中的头文件,如果某一个架构没有自己特殊代码的话,其中会使用通用版本的头文件,即包含 asm-generic/里的对应.h文件。

    代码中不会直接包含 asm-generic/ 里的.h文件


    拿arm来举例

    #include <asm/gpio.h> 引用的头文件是 arch/arm/include/asm/gpio.h 

    #include <asm-generic/gpio.h> 引用的是头文件是 include/asm-generic/gpio.h


  • 相关阅读:
    flex-direction
    flex-grow
    Push API
    ServiceWorker.state
    Using Service Workers
    Promise.then
    Promise()
    Using promises
    node-rsa
    async.waterfall
  • 原文地址:https://www.cnblogs.com/sammei/p/3295598.html
Copyright © 2011-2022 走看看