Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to mmap outside the Lwt monad #53

Open
dinosaure opened this issue Oct 19, 2022 · 0 comments · May be fixed by #55
Open

Be able to mmap outside the Lwt monad #53

dinosaure opened this issue Oct 19, 2022 · 0 comments · May be fixed by #55

Comments

@dinosaure
Copy link
Member

It may be interesting to implement the mmap syscall. We don't really need anything very complex and it could just be a simple read() outside the Lwt monad in the first place.

val mmap : t -> off:int64 -> sectors:int64 -> (Cstruct.t list, error) result

It might be interesting to have such access for reading. The proposed interface counts in "sectors". For example off = 1L really means off = 1L * sector_size.

/cc @mirage/core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant