Closed Azure-stars closed 1 month ago
dev/shm 是 unix 系统下用内存页替代文件的一个实现,在里面创建的文件以及读写操作均只会在内存页上进行,当页被释放则操作则全部失效。对应在 ArceOS 上即是将 ArceOS 原有的 ramfs 挂载到 dev/shm 目录下即可,不过需要对文件读写等进行判断,查看是否是读写 dev/shm 下文件。
dev/shm
ArceOS
涉及 PR:
dev/shm
是 unix 系统下用内存页替代文件的一个实现,在里面创建的文件以及读写操作均只会在内存页上进行,当页被释放则操作则全部失效。对应在ArceOS
上即是将ArceOS
原有的 ramfs 挂载到dev/shm
目录下即可,不过需要对文件读写等进行判断,查看是否是读写dev/shm
下文件。