首页 > 解决方案 > 如何在 Linux 上的 Common Lisp 中对文件进行内存映射?

问题描述

如何通过cffi自定义库在 Common Lisp 中实现内存映射?

void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);在C语言中有。

标签: linuxcommon-lisp

解决方案


已经有How do I memory map tmpfs files in sbcl? ,但现在有一个可移植的库:只是(ql:quickload "mmap").

存储库在这里


推荐阅读