Linux register cache

Cache在regmap子系统中的概念

   regmap中的cache并不是通常意义上的cache。

  我认为一般谈到的cache 是介于内存与CPU之间的那块存储设备(指硬件)。

  regmap中的cache,就是字面意思,缓存。具体位置是从内存上申请的一块空间。

 

   reg_defaults: Power on reset values for registers (for use with  register cache support).

 支持cache与不支持cache时的区别

    具体根据regmap_config的配置执行操作。以下的行为,是根据我自己的驱动来的。

    不支持cache时(REGCACHE_NONE): 

支持cache(REGCACHE_RBTREE):

 

posted on 2023-03-08 15:31  Ctrl攻城狮  阅读(130)  评论(0编辑  收藏  举报