Golang interface to Linux's userfaultfd system call.
NOTES
- Must set
vm.unprivileged_userfaultfdas user for some features.
Tested on:
| Arch | notes |
|---|---|
| arm64 | Debian 13 with kernel 6.12 and CONFIG_USERFAULTFD not set |
| amd64 | Fedora 43 with kernel 6.17 |
| ppc64le | SLES 15-SP3 with kernel 5.3 |
| s390x | SLES 16.0 with kernel 6.12 |
Similar projects:
More information at:
- https://github.com/torvalds/linux/blob/master/mm/userfaultfd.c
- https://docs.kernel.org/admin-guide/mm/userfaultfd.html
- https://man.archlinux.org/man/userfaultfd.2.en
- https://man.archlinux.org/man/ioctl_userfaultfd.2.en
- https://www.cons.org/cracauer/cracauer-userfaultfd.html
- https://lwn.net/Articles/897260/