• 首页
  • 中国
  • OK6410A 开发板 (八) 106 linux-5.11 OK6410A tmpfs 文件系统

OK6410A 开发板 (八) 106 linux-5.11 OK6410A tmpfs 文件系统

2023-11-01 90浏览
百检网是一家专业的第三方检测平台,汇聚众多拥有权威资质的第三方检测机构为你提供一站式的检测服务,做检测就上百检网。百检网让检测从此检测,一份报告全国通用,专业值得信赖。

tmpfs 是 内存文件系统(不对应磁盘文件),却有 page cache

tmpfs 和 shmem 有什么关系

CONFIG_SHMEM 是 CONFIG_TMPFS 的基础,当 CONFIG_SHMEM 选择了 , CONFIG_TMPFS 才可以选

CONFIG_TMPFS 是 CONFIG_SHMEM 的前端,CONFIG_TMPFS呈现给用户空间的接口

CONFIG_TMPFS 和 "tmpfs" 是 两个东西,tmpfs 不必依赖 CONFIG_TMPFS 而 存在.

CONFIG_TMPFS 只有 在 CONFIG_SHMEM 存在时才存在, 而 "tmpfs" 可以 在 CONFIG_SHMEM 不存在时而存在

"tmpfs" 一定要实现,可简单可复杂,总共有三种配置

CONFIG_SHMEM=n & CONFIG_TMPFS=n

CONFIG_SHMEM=y & CONFIG_TMPFS=n

CONFIG_SHMEM=y & CONFIG_TMPFS=y

| CONFIG_TMPFS: |

| |

| Tmpfs is a file system which keeps all files in virtual memory. |

| |

| Everything in tmpfs is temporary in the sense that no files will be |

| created on your hard drive. The files live in memory and swap |

| space. If you unmount a tmpfs instance, everything stored therein is |

| lost. |

| |

| See for details. |

| |

| Symbol: TMPFS [=y] |

| Type : bool |

| Defined at fs/Kconfig:158 |

| Prompt: Tmpfs virtual memory file system support (former shm fs) |

| Depends on: SHMEM [=y] |

| Location: |

| -> File systems |

| -> Pseudo filesystems

| CONFIG_SHMEM: |

| |

百检网秉承“客户至上,服务为先,精诚合作,以人为本”的经营理念,始终站在用户的角度解决问题,为客户提供“一站购物式”的新奇检测体验,打开网站,像挑选商品一样简单,方便。打破行业信息壁垒,建构消费和检测机构之间高效的沟通平台