freebsd-dev/sys/compat/linuxkpi/common/include/linux
Mateusz Guzik 21b737495b Introduce __read_mostly and __exclusive_cache_line macros.
The intended use is to annotate frequently used globals which either rarely
change (and thus can be grouped in the same cacheline) or are an atomic counter
(which means it may benefit from being the only variable in the cacheline).

Linker script support is provided only for amd64. Architectures without it risk
having other variables put in, i.e. as if they were not annotated. This is
harmless from correctness point of view.

Reviewed by:	bde (previous version)
MFC after:	1 month
2017-01-27 14:53:09 +00:00
..
bitops.h Fix some data types and add "inline" keyword for __reg_op() function. 2016-05-23 13:18:15 +00:00
cache.h
cdev.h Implement register and unregister chrdev in the LinuxKPI. 2016-12-26 01:18:07 +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 Set "current" for all PCI enumeration callbacks. 2016-05-24 07:46:20 +00:00
compiler.h Introduce __read_mostly and __exclusive_cache_line macros. 2017-01-27 14:53:09 +00:00
completion.h Make header file standalone by including definitions for needed 2016-05-23 11:57:23 +00:00
delay.h
device.h Improve LinuxKPI device support. Only delete own BSD devices and not 2016-12-25 19:49:09 +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 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 Fallback to arc4rand() in the LinuxKPI when read_random() returns 2016-06-07 13:10:13 +00:00
file.h Handle when filedescriptors are closed before initialized. An early 2015-12-31 14:47:45 +00:00
fs.h Fix LINT build. 2016-12-26 10:03:33 +00:00
gfp.h Use correct integer type when computing the maximum physical address 2016-12-25 21:41:40 +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
in6.h
in.h
inetdevice.h
interrupt.h Prefix some _pci_xxx() functions in the Linux KPI with linux_ and make 2016-12-09 13:47:50 +00:00
io-mapping.h
io.h Add __iowrite32_copy() to the Linux kernel compatibility layer. 2016-05-24 09:23:04 +00:00
ioctl.h Define _IOC_SIZE() in the LinuxKPI. 2016-05-13 11:42:36 +00:00
jhash.h
jiffies.h Implement nsecs_to_jiffies() in the LinuxKPI and while at it 2016-05-13 11:02:02 +00:00
kdev_t.h Implement "old_encode_dev()" for the LinuxKPI. 2016-05-13 11:51:43 +00:00
kernel.h Add more printf() related functions to the LinuxKPI. 2016-05-23 12:35:07 +00:00
kmod.h
kobject.h Minor LinuxKPI code cleanup: 2015-12-31 12:30:19 +00:00
kref.h Implement "kref_put_mutex()" for the LinuxKPI. 2016-05-23 12:06:34 +00:00
kthread.h Remove redundant "task_struct_set()". 2016-05-12 09:11:18 +00:00
ktime.h Add more ktime related functions to the LinuxKPI. 2016-05-23 12:10:28 +00:00
list.h Implement more list header file functions. 2016-12-26 10:41:51 +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 Add support for runtime modifiable module parameters in the LinuxKPI. 2016-05-26 09:04:14 +00:00
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 Add more PAGE related defines to the LinuxKPI. Move the definition of 2016-05-13 12:41:21 +00:00
pci.h linuxkpi: Fix not-found case of linux_pci_find_irq_dev 2016-12-13 19:58:21 +00:00
poll.h
printk.h
radix-tree.h
random.h Fallback to arc4rand() in the LinuxKPI when read_random() returns 2016-06-07 13:10:13 +00:00
rbtree.h
rcupdate.h LinuxKPI list updates: 2016-01-26 15:12:31 +00:00
rwlock.h
rwsem.h
scatterlist.h
sched.h Add checks for SCHEDULER_STOPPED() so that code using the LinuxKPI can 2016-05-25 09:04:06 +00:00
semaphore.h
slab.h Avoid malloc() warnings when using the LinuxKPI by zero-checking 2016-12-09 14:06:22 +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 Remove the only user of sysctl_add_oid(). 2016-12-13 07:58:30 +00:00
time.h A missing definition needed by ktime_to_ms(). 2016-05-23 13:19:20 +00:00
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 The SCHEDULER_STOPPED() macro already contains a predict false statement. 2016-05-27 07:33:49 +00:00
workqueue.h Implement drain_workqueue() function. 2015-12-21 12:20:02 +00:00