mirror-linux/Documentation/driver-api
Lorenzo Stoakes (Oracle) 14beec0344 staging: vme_user: replace deprecated mmap hook with mmap_prepare
The f_op->mmap interface is deprecated, so update driver to use its
successor, mmap_prepare.

The driver previously used vm_iomap_memory(), so this change replaces it
with its mmap_prepare equivalent, mmap_action_simple_ioremap().

Functions that wrap mmap() are also converted to wrap mmap_prepare()
instead.

Also update the documentation accordingly.

Link: https://lkml.kernel.org/r/08ecc1e1d319564fd49b9e9012f994edaff921db.1774045440.git.ljs@kernel.org
Signed-off-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Bodo Stroesser <bostroesser@gmail.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Clemens Ladisch <clemens@ladisch.de>
Cc: David Hildenbrand <david@kernel.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Jann Horn <jannh@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Long Li <longli@microsoft.com>
Cc: Marc Dionne <marc.dionne@auristor.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Pedro Falcato <pfalcato@suse.de>
Cc: Richard Weinberger <richard@nod.at>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-04-05 13:53:44 -07:00
..
80211 Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
acpi ACPI: Documentation: driver-api: Disapprove of using ACPI drivers 2026-01-15 14:27:38 +01:00
backlight
coco Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
crypto Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
cxl cxl changes for v7.0 2026-02-12 16:33:05 -08:00
dmaengine dmaengine updates for v7.0 2026-02-17 11:47:17 -08:00
driver-model docs: driver-model: document driver_override 2026-03-17 20:30:57 +01:00
early-userspace Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
firmware Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
fpga
gpio Documentation: gpio: pca953x: clarify interrupt source detection 2026-01-08 10:50:33 +01:00
hte
i3c docs: driver-api: fix spelling of "buses". 2025-09-18 10:40:46 -06:00
iio docs: iio: Allow creating cross-references ABI 2025-02-18 13:42:46 -07:00
md
media media: vb2: remove vb2_ops_wait_prepare/finish helpers 2025-12-18 11:14:57 +01:00
mei
memory-devices Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
mmc Documentation: mmc: Add mmc-test doc 2024-09-05 12:13:39 +02:00
mtd
nfc
nvdimm Documentation: btt: Unwrap bit 31-30 nested table 2025-11-07 09:06:51 -06:00
pci Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
phy docs: fix 're-use' -> 'reuse' in documentation 2026-02-02 09:54:15 -07:00
pldmfw Documentation: pldmfw: Demote library overview section 2025-11-05 11:29:30 -07:00
pm Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
rapidio
serial Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
soundwire Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
surface_aggregator Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
thermal thermal: int340x: processor_thermal: Enable slow workload type hints 2026-01-07 21:42:10 +01:00
tty docs: fix 're-use' -> 'reuse' in documentation 2026-02-02 09:54:15 -07:00
usb docs: fix 're-use' -> 'reuse' in documentation 2026-02-02 09:54:15 -07:00
virtio
xilinx Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
aperture.rst
auxiliary_bus.rst drivers/base: Remove unused auxiliary_find_device 2024-10-14 08:21:09 +02:00
basics.rst docs: Update documentation to avoid mentioning of kernel.h 2025-12-22 14:59:18 -07:00
clk.rst
component.rst
connector.rst
console.rst
devfreq.rst
device-io.rst docs: driver-api: fix spelling of "buses". 2025-09-18 10:40:46 -06:00
device_link.rst
dma-buf.rst dma-buf: Remove DMA-BUF sysfs stats 2026-01-19 19:10:01 +05:30
dpll.rst dpll: add phase-adjust-gran pin attribute 2025-10-31 17:59:17 -07:00
edac.rst
eisa.rst docs: driver-api: fix spelling of "buses". 2025-09-18 10:40:46 -06:00
extcon.rst Documentation: extcon: add documentation for Extcon subsystem 2024-12-08 21:59:40 +09:00
firewire.rst firewire: core: expose kernel API to schedule work item to process isochronous context 2024-09-08 13:05:48 +09:00
frame-buffer.rst
generic-counter.rst docs: arm: generic-counter: Allow creating cross-references for ABI 2025-02-18 13:42:46 -07:00
generic_pt.rst iommupt: Documentation fixes 2025-11-07 11:12:03 +01:00
hsi.rst
hw-recoverable-errors.rst vmcoreinfo: track and log recoverable hardware errors 2025-11-27 14:24:44 -08:00
i2c.rst
index.rst Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
infiniband.rst docs: driver-api/infiniband.rst: fix Kerneldoc markup 2025-03-04 09:47:38 -07:00
infrastructure.rst driver core: add a faux bus for use when a simple device/bus is needed 2025-02-13 16:58:51 +01:00
input.rst
interconnect.rst
io-mapping.rst
io_ordering.rst
ioctl.rst
ipmb.rst
ipmi.rst docs: driver-api: fix spelling of "buses". 2025-09-18 10:40:46 -06:00
isa.rst
libata.rst Documentation: driver-api: Update libata error handler information 2025-07-16 09:31:43 +02:00
mailbox.rst Documentation: mailbox: mbox_chan_ops.flush() is optional 2025-12-22 15:30:31 -07:00
men-chameleon-bus.rst
message-based.rst
misc_devices.rst
miscellaneous.rst
mtdnand.rst treewide: Update email address 2026-01-11 06:09:11 -10:00
ntb.rst Documentation: NTB: Fix typo 2025-05-19 09:04:21 -06:00
nvmem.rst nvmem: Remove unused nvmem cell table support 2025-05-21 14:28:27 +02:00
parport-lowlevel.rst Documentation: parport-lowlevel: Separate function listing code blocks 2025-11-10 12:47:36 -07:00
pin-control.rst pci-v6.18-changes 2025-10-06 10:41:03 -07:00
pps.rst Documentation: driver-api: pps: Add Intel Timed I/O PPS generator 2025-02-21 10:46:49 +01:00
ptp.rst
pwm.rst docs: pwm: Adapt Locking paragraph to reality 2025-07-07 08:39:36 +02:00
pwrseq.rst Documentation: pwrseq: Fix trivial misspellings 2024-11-22 10:36:53 -07:00
regulator.rst
reset.rst Documentation: reset: Remove reset_controller_add_lookup() 2025-11-20 10:02:37 +01:00
rfkill.rst
s390-drivers.rst
scsi.rst docs: driver-api: fix spelling of "buses". 2025-09-18 10:40:46 -06:00
slimbus.rst
sm501.rst
spi.rst docs: driver-api: fix spelling of "buses". 2025-09-18 10:40:46 -06:00
switchtec.rst
sync_file.rst
target.rst
tee.rst tee: Adapt documentation to cover recent additions 2025-12-17 18:28:28 +01:00
uio-howto.rst
vfio-mediated-device.rst
vfio-pci-device-specific-driver-acceptance.rst
vfio.rst
vme.rst staging: vme_user: replace deprecated mmap hook with mmap_prepare 2026-04-05 13:53:44 -07:00
w1.rst
wbrf.rst
wmi.rst platform/wmi: Add helper functions for WMI string conversions 2026-01-20 15:47:51 +02:00
xillybus.rst
zorro.rst