opnsense-src/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky 949440623b Return correct error code to user-space when a system call receives a
signal in the LinuxKPI.

The read(), write() and mmap() system calls can return either EINTR or
ERESTART upon receiving a signal. Add code to figure out the correct
return value by temporarily storing the return code from the relevant
FreeBSD kernel APIs in the Linux task structure.

MFC after:	3 days
Sponsored by:	Mellanox Technologies
2018-02-22 15:29:19 +00:00
..
atomic.h Add a couple of trivial headers to the LinuxKPI. 2017-08-20 01:40:24 +00:00
bitmap.h Cleanup the bitmap_xxx() functions in the LinuxKPI: 2017-04-06 13:30:31 +00:00
bitops.h The LinuxKPI atomics do not have acquire nor release semantics unless 2017-09-18 13:37:14 +00:00
bottom_half.h Add support for LinuxKPI tasklets. 2017-02-21 13:23:53 +00:00
cache.h
cdev.h Fix LinuxKPI regression after r321920. The mda_unit and si_drv0 fields are not 2017-08-02 14:27:27 +00:00
clocksource.h Remove cycle_t type from the LinuxKPI similar to Linux upstream. 2017-07-31 09:17:54 +00:00
compat.h Make the LinuxKPI task struct persistent accross system calls. 2017-02-21 12:43:02 +00:00
compiler.h Add support for __percpu and __weak macros in the LinuxKPI. 2018-02-17 20:50:18 +00:00
completion.h Use integer type to pass around jiffies and/or ticks values in the 2017-08-10 13:05:40 +00:00
dcache.h Refactor dentry structure into its own header file in the LinuxKPI similary 2018-02-18 08:29:25 +00:00
delay.h Finish process of moving the LinuxKPI module into the default kernel build. 2015-10-29 08:28:39 +00:00
device.h Move the IRQ_RETVAL() and irqreturn definitions to irqreturn.h in the 2018-02-17 20:37:21 +00:00
dma-attrs.h
dma-mapping.h Make the dma_alloc_coherent() function in the LinuxKPI NULL safe with regard 2017-11-08 08:37:05 +00:00
dmapool.h sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00
err.h Add unlikely() statement to optimise the IS_ERR_VALUE() macro. 2016-05-13 11:30:56 +00:00
errno.h The Linux error defines should all be positive, else frequently used 2016-05-13 09:21:22 +00:00
etherdevice.h Implement eth_zero_addr() in the LinuxKPI. 2017-03-08 09:53:20 +00:00
file.h Add more sanity checks to linux_fget() in the LinuxKPI. This prevents 2017-09-09 06:04:05 +00:00
fs.h Implement file_inode() and call_mmap() helper functions in the LinuxKPI. 2018-02-18 08:40:07 +00:00
gfp.h Implement __GFP_BITS_SHIFT and __GFP_BITS_MASK macros in the LinuxKPI. 2018-02-18 08:58:20 +00:00
hardirq.h
hrtimer.h Fix hrtimer_active() in case of cancellation. 2017-08-07 14:34:05 +00:00
idr.h Properly implement idr_preload() and idr_preload_end() in the 2017-05-31 16:08:30 +00:00
if_arp.h
if_ether.h Finish process of moving the LinuxKPI module into the default kernel build. 2015-10-29 08:28:39 +00:00
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 Add support for more IPv4 and IPv6 related macros in the LinuxKPI. 2017-03-22 15:44:00 +00:00
in6.h Unconditionally include "opt_inet6.h" in the LinuxKPI. 2017-11-01 12:21:28 +00:00
inetdevice.h Only search the scope ID in ip6_find_dev() for IPv6 addresses which 2017-09-09 12:50:12 +00:00
interrupt.h Move the IRQ_RETVAL() and irqreturn definitions to irqreturn.h in the 2018-02-17 20:37:21 +00:00
io-mapping.h Let io_mapping_init_wc() fall back to an uncacheable mapping. 2017-07-03 02:01:16 +00:00
io.h Implement ioread16be() in the LinuxKPI. 2017-11-01 12:34:18 +00:00
ioctl.h Define _IOC_SIZE() in the LinuxKPI. 2016-05-13 11:42:36 +00:00
irqreturn.h Move the IRQ_RETVAL() and irqreturn definitions to irqreturn.h in the 2018-02-17 20:37:21 +00:00
jhash.h
jiffies.h Use integer type to pass around jiffies and/or ticks values in the 2017-08-10 13:05:40 +00:00
kdev_t.h Fix LinuxKPI regression after r321920. The mda_unit and si_drv0 fields are not 2017-08-02 14:27:27 +00:00
kernel.h Implement BUILD_BUG_ON_INVALID() function macro in the LinuxKPI. 2018-02-17 21:40:19 +00:00
kmod.h Finish process of moving the LinuxKPI module into the default kernel build. 2015-10-29 08:28:39 +00:00
kobject.h Add some miscellaneous definitions to support the DRM drivers. 2017-08-22 17:13:28 +00:00
kref.h Add support for kref_read() function in the LinuxKPI. 2018-02-17 20:56:35 +00:00
kthread.h Add kthread parking support to the LinuxKPI. 2017-06-18 19:22:05 +00:00
ktime.h Update the ktime type in the LinuxKPI to be a signed 64-bit integer similarly 2018-02-18 08:05:40 +00:00
list.h Implement list_safe_reset_next() function macro in the LinuxKPI. 2018-02-19 16:31:19 +00:00
lockdep.h Stub more lockdep function macros in the LinuxKPI. 2018-02-17 22:41:20 +00:00
log2.h Finish process of moving the LinuxKPI module into the default kernel build. 2015-10-29 08:28:39 +00:00
math64.h Add some functions to math64.h in the LinuxKPI, and fix nearby style. 2017-07-09 23:14:51 +00:00
miscdevice.h Minor LinuxKPI code cleanup: 2015-12-31 12:30:19 +00:00
mm.h Make the vm_fault structure in the LinuxKPI compatible with 2018-02-18 09:31:01 +00:00
mm_types.h Add support for mmgrab() function in the LinuxKPI. 2018-02-17 20:52:54 +00:00
module.h Add some miscellaneous definitions to support the DRM drivers. 2017-08-22 17:13:28 +00:00
moduleparam.h Add support for runtime modifiable module parameters in the LinuxKPI. 2016-05-26 09:04:14 +00:00
mutex.h Return correct error code to user-space when a system call receives a 2018-02-22 15:29:19 +00:00
net.h Make all the LinuxKPI include files compile standalone. 2015-11-03 12:37:55 +00:00
netdevice.h Add basic support for VIMAGE to the LinuxKPI and ibcore. 2017-03-16 09:59:35 +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 Make sure the "vm_flags" and "vm_page_prot" fields get set correctly 2017-08-11 10:44:40 +00:00
pci.h Add a specialized function for DRM drivers to register themselves. 2017-08-11 03:59:48 +00:00
pfn.h Implement a series of physical page management related functions in 2017-03-27 17:04:11 +00:00
pfn_t.h Implement a series of physical page management related functions in 2017-03-27 17:04:11 +00:00
pid.h Implement get_task_pid() function macro in the LinuxKPI. 2018-02-17 22:33:26 +00:00
poll.h Properly implement poll_wait() in the LinuxKPI. This prevents direct 2017-09-09 06:29:29 +00:00
preempt.h Add some miscellaneous definitions to support DRM drivers. 2017-05-30 17:16:08 +00:00
printk.h Add support for printk_ratelimit() function macro and improve the existing 2018-02-17 21:25:19 +00:00
radix-tree.h Implement support for radix_tree_for_each_slot() and radix_tree_exception() 2018-02-18 12:54:21 +00:00
random.h Add get_random_{int,long} to the LinuxKPI. 2017-10-04 17:29:08 +00:00
rbtree.h
rculist.h Replace dummy implementation of RCU in the LinuxKPI with one based on 2017-02-21 18:04:21 +00:00
rcupdate.h Implement the rcu_dereference_raw() function macro. 2018-02-18 09:10:14 +00:00
rwlock.h Make the LinuxKPI task struct persistent accross system calls. 2017-02-21 12:43:02 +00:00
rwsem.h Return correct error code to user-space when a system call receives a 2018-02-22 15:29:19 +00:00
scatterlist.h Convert magic values into macros in the LinuxKPI scatterlist 2017-02-22 20:24:09 +00:00
sched.h Return correct error code to user-space when a system call receives a 2018-02-22 15:29:19 +00:00
semaphore.h Make the LinuxKPI task struct persistent accross system calls. 2017-02-21 12:43:02 +00:00
slab.h Implement the KMEM_CACHE() function macro in the LinuxKPI. 2018-02-18 09:52:30 +00:00
smp.h Add on_each_cpu() and wbinvd_on_all_cpus(). 2017-05-01 16:32:28 +00:00
socket.h Finish process of moving the LinuxKPI module into the default kernel build. 2015-10-29 08:28:39 +00:00
spinlock.h Implement spin_trylock_irq() function macro in the LinuxKPI. 2018-02-17 22:45:15 +00:00
srcu.h Fix problem regarding priority inversion when using the concurrency 2017-04-19 13:03:29 +00:00
string.h Implement memdup_user_nul() in the LinuxKPI. 2018-02-16 15:52:28 +00:00
sysfs.h Add macros for defining attribute groups and for WO and RW attributes. 2017-08-08 04:30:22 +00:00
time.h A missing definition needed by ktime_to_ms(). 2016-05-23 13:19:20 +00:00
timer.h Mask away return codes from del_timer() and del_timer_sync() because 2017-11-11 10:46:12 +00:00
types.h Add some miscellaneous definitions to support DRM drivers. 2017-05-30 17:16:08 +00:00
uaccess.h Allow the put_user() function macro to put constant values by using the 2018-02-17 21:47:15 +00:00
usb.h Make all the LinuxKPI include files compile standalone. 2015-11-03 12:37:55 +00:00
vmalloc.h Finish process of moving the LinuxKPI module into the default kernel build. 2015-10-29 08:28:39 +00:00
wait.h Fixes for wait event in the LinuxKPI. These are regression issues 2017-08-10 13:00:10 +00:00
workqueue.h Make sure the timer belonging to the delayed work in the LinuxKPI 2017-10-04 13:13:38 +00:00
ww_mutex.h Implement support for mutexes with deadlock avoidance in the LinuxKPI. 2017-03-09 18:33:40 +00:00