opnsense-src/sys/compat/linuxkpi/common/src
Bjoern A. Zeeb 19df0c5abc LinuxKPI: make __kmalloc() play by the rules
According to Documentation/core-api/dma-api.rst kmalloc() is supposd
to provide physically contiguous memory. [1]

In order to guarantee that allocations are contiguous even if using
PAGE_SIZE or larger check the size and use contigmalloc if needed.
This makes use of 9e6544dd6e (and following) allowing free(9) to
also work for contigmalloced memory.

Sponsored by:	The FreeBSD Foundation
Pointed out by:	jhb [1]
Reviewed by:	jhb, emaste
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D46656
2025-03-14 16:24:52 +00:00
..
linux_80211.c LinuxKPI: 802.11: improve key update locking to work around net80211 2025-03-06 23:02:08 +00:00
linux_80211.h LinuxKPI: 802.11: improve key update locking to work around net80211 2025-03-06 23:02:08 +00:00
linux_80211_macops.c LinuxKPI: 802.11: hardware crypto offload improvements 2025-02-18 02:54:33 +00:00
linux_acpi.c LinuxKPI: Add acpi_dev_get_first_match_dev and acpi_device_handle 2024-07-21 16:09:37 +03:00
linux_aperture.c LinuxKPI: update linuxkpi_video to Linux 6.6 2024-08-07 23:38:38 +03:00
linux_cmdline.c LinuxKPI: update linuxkpi_video to Linux 6.6 2024-08-07 23:38:38 +03:00
linux_compat.c linuxkpi: Defaults to get_file_rcu() version from Linux 6.7 2025-02-19 21:39:46 +01:00
linux_current.c Revert "LinuxKPI: Add explicit software context to FPU sections" 2024-02-11 01:01:50 +03:00
linux_devres.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
linux_dmi.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
linux_domain.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linux_firmware.c LinuxKPI: firmware: change order filenames trying to load firmware 2024-12-01 19:41:46 +00:00
linux_fpu.c LinuxKPI: Allow kmalloc to be called when FPU protection is enabled 2024-02-11 01:01:50 +03:00
linux_hdmi.c LinuxKPI: update linuxkpi_video to Linux 6.6 2024-08-07 23:38:38 +03:00
linux_hrtimer.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linux_i2c.c Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
linux_i2cbb.c Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
linux_idr.c linuxkpi: Allow ida_destroy and idr_destroy to be called multiple times 2024-06-06 23:42:06 +03:00
linux_interrupt.c LinuxKPI: Remove sys/rman.h include from LKPI headers. 2023-12-24 11:19:57 +03:00
linux_kmod.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linux_kobject.c linuxkpi: Add struct kset support in <linux/kobject.h> 2023-12-13 19:57:52 +01:00
linux_kthread.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
linux_lock.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
linux_mhi.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linux_netdev.c LinuxKPI: netdevice: add alloc_netdev_dummy() 2024-10-17 13:27:05 +00:00
linux_page.c LinuxKPI: always use contig allocations in linux_alloc_kmem() 2025-03-14 16:24:52 +00:00
linux_pci.c linuxkpi: Add pci_get_base_class() 2025-01-31 17:00:47 +01:00
linux_radix.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linux_rcu.c LinuxKPI: update rcu_dereference_*() and lockdep_is_held() 2024-10-23 01:43:09 +00:00
linux_schedule.c sleepqueue: Remove kernel stack swapping support, part 10 2024-07-29 01:43:59 +00:00
linux_seq_file.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linux_shmemfs.c Revert "linuxkpi: GFP_KERNEL equals M_NOWAIT now" 2023-12-07 21:53:44 +01:00
linux_shrinker.c vm_lowmem: Fix signature mismatches in vm_lowmem callbacks 2025-03-04 20:18:52 -05:00
linux_simple_attr.c LinuxKPI: Add DEFINE_DEBUGFS_ATTRIBUTE_SIGNED to linux/debugfs.h 2024-06-26 23:51:34 +03:00
linux_skbuff.c LinuxKPI: skbuff: add synchronization primitives and missing bits 2025-02-23 23:25:32 +00:00
linux_slab.c LinuxKPI: make __kmalloc() play by the rules 2025-03-14 16:24:52 +00:00
linux_tasklet.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linux_usb.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
linux_work.c LinuxKPI: Add cancel_work() function. 2023-12-24 11:19:59 +03:00
linux_xarray.c linuxkpi: Don't destroy the mutex in xa_destroy() 2025-01-31 17:00:50 +01:00
linuxkpi_hdmikmod.c linuxkpi: hdmi: Split the module declaration to a new file 2024-04-30 07:41:48 +02:00
linuxkpi_videokmod.c linuxkpi: Add linuxkpi_video module 2024-04-30 07:42:31 +02:00
lkpi_iic_if.m spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00