Get the latest tech news

The phaseout of the mmap() file operation in Linux


The file_operations structure in the kernel is a set of function pointers implementing, as the [...]

The next step That was the state of the API as merged for the 6.17 release; it was enough to support the conversion of a number of drivers over from mmap() and begin the long process of deprecating that interface. The actions defined in this patch set are MMAP_NOTHING(do nothing), MMAP_REMAP_PFN, which causes the address space covered by the VMA to be mapped to a range of page-frame numbers beginning at start_pfn, and MMAP_IO_REMAP_PFN, which performs a similar remapping into device-hosted memory. Whether it will settle in time for the 6.18 merge window is unclear at this point, so the work to remove the mmap() callback may have to wait another cycle before proceeding.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Linux

Linux

Photo of phaseout

phaseout

Photo of file operation

file operation

Related news:

News photo

I install these 11 apps on every new Linux system, and you should, too - here's why

News photo

RISC-V With Linux 6.18 Brings Support For MIPS Vendor Extensions

News photo

LockBit's new variant is 'most dangerous yet,' hitting Windows, Linux and VMware ESXi Operation Cronos didn’t kill LockBit – it just came back meaner