syscall.sh / x86 / remap_file_pages

remap_file_pages

create a nonlinear file mapping

sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags)
number257 (0x101)
abii386
entry pointsys_remap_file_pages
sinceLinux 3.3
man pageremap_file_pages(2)
sourceelixir.bootlin.com

Registers

registervalue
eax257, the syscall number
ebxunsigned long start
ecxunsigned long size
edxunsigned long prot
esiunsigned long pgoff
ediunsigned long flags
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/remap_file_pages