opnsense-src/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky 3a8bec33ef Fix handling of IOCTLs in the LinuxKPI.
Linux requires that all IOCTL data resides in userspace. FreeBSD
always moves the main IOCTL structure into a kernel buffer before
invoking the IOCTL handler and then copies it back into userspace,
before returning. Hide this difference in the "linux_copyin()" and
"linux_copyout()" functions by remapping userspace addresses in the
range from 0x10000 to 0x20000, to the kernel IOCTL data buffer.

It is assumed that the userspace code, data and stack segments starts
no lower than memory address 0x400000, which is also stated by "man 1
ld", which means any valid userspace pointer can be passed to regular
LinuxKPI handled IOCTLs.

Bump the FreeBSD version to force recompilation of all kernel modules.

Discussed with:	kmacy @
MFC after:	1 week
Sponsored by:	Mellanox Technologies
2016-05-12 11:38:28 +00:00
..
bitops.h Fix bugs in currently unused bit searching loop. 2016-03-31 06:19:15 +00:00
cache.h
cdev.h Minor LinuxKPI code cleanup: 2015-12-31 12:30:19 +00:00
clocksource.h Update and add various macros to the LinuxKPI and resolve a macro 2016-01-26 15:26:35 +00:00
compat.h Remove incorrect defines. The proper version of these macros is 2015-12-03 11:45:12 +00:00
compiler.h Implement ACCESS_ONCE(), WRITE_ONCE() and READ_ONCE(). 2015-12-21 10:56:38 +00:00
completion.h Update and add various macros to the LinuxKPI and resolve a macro 2016-01-26 15:26:35 +00:00
delay.h
device.h Minor LinuxKPI code cleanup: 2015-12-31 12:30:19 +00:00
dma-attrs.h
dma-mapping.h sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00
dmapool.h sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00
err.h
errno.h
etherdevice.h Add more functions to the LinuxKPI. 2016-03-03 09:56:04 +00:00
file.h Handle when filedescriptors are closed before initialized. An early 2015-12-31 14:47:45 +00:00
fs.h
gfp.h Update and add various macros to the LinuxKPI and resolve a macro 2016-01-26 15:26:35 +00:00
hardirq.h
idr.h Add more IDR and IDA related functions to the LinuxKPI. 2016-05-11 10:40:04 +00:00
if_arp.h
if_ether.h
if_vlan.h Implement is_vlan_dev() and vlan_dev_vlan_id() for the LinuxKPI. 2016-01-26 14:33:20 +00:00
in.h
in6.h
inetdevice.h
interrupt.h LinuxKPI style changes: 2016-01-08 10:04:19 +00:00
io-mapping.h
io.h Implement ioremap_wt() and use that in the MEMREMAP_WT case for i386 2016-05-10 17:51:17 +00:00
ioctl.h
jhash.h
jiffies.h Add wait_event_interruptible_timeout to linuxkpi. 2016-03-31 17:11:58 +00:00
kdev_t.h
kernel.h Add more functions to the LinuxKPI. 2016-03-03 09:56:04 +00:00
kmod.h
kobject.h Minor LinuxKPI code cleanup: 2015-12-31 12:30:19 +00:00
kref.h
kthread.h Remove redundant "task_struct_set()". 2016-05-12 09:11:18 +00:00
ktime.h
list.h tcp/lro: Change SLIST to LIST, so that removing an entry is O(1) 2016-04-01 06:43:05 +00:00
lockdep.h
log2.h
math64.h
miscdevice.h Minor LinuxKPI code cleanup: 2015-12-31 12:30:19 +00:00
mm.h
module.h
moduleparam.h
mutex.h Use function macro instead of non-function macro to reduce chance of 2016-01-21 17:36:06 +00:00
net.h
netdevice.h Add more network related macros and functions to the LinuxKPI. 2016-01-26 14:29:50 +00:00
notifier.h Add definition for the NETDEV_CHANGE event and tidy up the LinuxKPI 2016-01-26 14:27:00 +00:00
page.h
pci.h Add more LinuxKPI PCI related functions and defines. 2016-01-26 14:20:25 +00:00
poll.h
printk.h
radix-tree.h
random.h
rbtree.h
rcupdate.h LinuxKPI list updates: 2016-01-26 15:12:31 +00:00
rwlock.h
rwsem.h
scatterlist.h
sched.h Fix handling of IOCTLs in the LinuxKPI. 2016-05-12 11:38:28 +00:00
semaphore.h
slab.h Add more functions to the LinuxKPI. 2016-03-03 09:56:04 +00:00
socket.h
spinlock.h
srcu.h Implement sleepable RCU mechanism using shared exclusive locks. 2015-12-21 11:03:12 +00:00
string.h Add more functions to the LinuxKPI. 2016-03-03 09:56:04 +00:00
sysfs.h linuxkpi/sysfs.h: Cast arg2 through intptr_t to avoid GCC warning 2015-11-09 16:50:42 +00:00
time.h
timer.h
types.h
uaccess.h Fix handling of IOCTLs in the LinuxKPI. 2016-05-12 11:38:28 +00:00
usb.h
vmalloc.h
wait.h Add wait_event_interruptible_timeout to linuxkpi. 2016-03-31 17:11:58 +00:00
workqueue.h Implement drain_workqueue() function. 2015-12-21 12:20:02 +00:00