opnsense-src/sys/sys
Robert Watson 5df3e83946 Add soreceive_dgram(9), an optimized socket receive function for use by
datagram-only protocols, such as UDP.  This version removes use of
sblock(), which is not required due to an inability to interlace data
improperly with datagrams, as well as avoiding some of the larger loops
and state management that don't apply on datagram sockets.

This is experimental code, so hook it up only for UDPv4 for testing; if
there are problems we may need to revise it or turn it off by default,
but it offers *significant* performance improvements for threaded UDP
applications such as BIND9, nsd, and memcached using UDP.

Tested by:	kris, ps
2008-07-02 23:23:27 +00:00
..
_bus_dma.h Break out typedefs from bus_dma.h to _bus_dma.h so that we can get the 2006-09-03 00:26:17 +00:00
_iovec.h
_lock.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_lockmgr.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_mutex.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_null.h
_pthreadtypes.h
_rmlock.h Initial checkin for rmlock (read mostly lock) a multi reader single writer 2007-11-08 14:47:55 +00:00
_rwlock.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_semaphore.h
_sigset.h
_stack.h Optimize lockmgr in order to get rid of the pool mutex interlock, of the 2008-04-06 20:08:51 +00:00
_sx.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_task.h
_timespec.h
_timeval.h
_types.h Add cpuset, an api for thread to cpu binding and cpu resource grouping 2008-03-02 07:39:22 +00:00
aac_ioctl.h Implement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls. RAID 2008-03-28 19:07:25 +00:00
acct.h Increase precision of time values in the process accounting 2007-05-22 06:51:38 +00:00
acl.h Minor white space tweaks in comments. 2007-03-16 13:39:04 +00:00
agpio.h
aio.h
alq.h
apm.h Define APM_ENT_NAMELEN and APM_ENT_TYPELEN for general use. 2008-06-12 04:37:37 +00:00
assym.h
ata.h Add experimental support for SATA Port Multipliers 2008-04-10 13:05:05 +00:00
bio.h Add a new I/O request - BIO_FLUSH, which basically tells providers below to 2006-10-31 21:11:21 +00:00
bitstring.h
blist.h add malloc flag to blist so that it can be used in ithread context 2008-05-05 19:48:54 +00:00
buf.h b_waiters cannot be adequately protected by the interlock because it is 2008-03-28 12:30:12 +00:00
bufobj.h - Complete part of the unfinished bufobj work by consistently using 2008-03-22 09:15:16 +00:00
bus.h Split out the probing magic of device_probe_and_attach into 2008-06-20 16:58:15 +00:00
bus_dma.h BUS_DMA_ISA is left over from Alpha, and is not used in the tree at 2008-03-15 06:44:45 +00:00
callout.h Implement per-cpu callout threads, wheels, and locks. 2008-04-02 11:20:30 +00:00
cdefs.h add __noinline 2008-03-25 21:30:01 +00:00
cdio.h
cdrio.h
chio.h
clist.h Fix the build by including <sys/param.h> in <sys/clist.h>. 2008-05-23 18:34:33 +00:00
clock.h Now that all platforms use genclock, shuffle things around slightly 2008-04-22 19:38:30 +00:00
condvar.h - Pass the priority argument from *sleep() into sleepq and down into 2008-03-12 06:31:06 +00:00
conf.h Struct cdev is always the member of the struct cdev_priv. When devfs 2008-06-16 17:34:59 +00:00
cons.h Move TTY unrelated bits out of <sys/tty.h>. 2008-05-23 16:06:35 +00:00
consio.h Fix our ioctl(2) implementation when the argument is "int". New 2006-09-27 19:57:02 +00:00
copyright.h Update to 2008. 2007-12-26 16:45:35 +00:00
cpu.h Add an interface for drivers to be notified of changes to CPU frequency. 2007-03-26 18:03:29 +00:00
cpuset.h - Add the interrupt vector number to intr_event_create so MI code can 2008-04-11 03:26:41 +00:00
ctype.h
dataacq.h
device_port.h
devicestat.h
digiio.h Fix our ioctl(2) implementation when the argument is "int". New 2006-09-27 19:57:02 +00:00
dir.h
dirent.h o Re-word a comment. 2006-08-16 09:34:56 +00:00
disk.h Implement three new ioctls that can be used with GEOM provider: 2007-05-05 17:02:19 +00:00
disklabel.h Add missing comma. 2008-03-12 18:25:47 +00:00
diskmbr.h
diskpc98.h
dkstat.h
domain.h Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
dtrace_bsd.h Add the DTrace shim layer definitions. 2008-05-17 02:16:58 +00:00
dvdio.h
elf.h Remove _SOLARIS_C_SOURCE compatibility definitions. Unfortunately the 2007-11-28 21:54:46 +00:00
elf32.h Convert types 'Elf{32,64}_Nhdr' into aliases of the generic 'Elf_Note' 2006-10-17 05:43:30 +00:00
elf64.h Convert types 'Elf{32,64}_Nhdr' into aliases of the generic 'Elf_Note' 2006-10-17 05:43:30 +00:00
elf_common.h Add extra visibility definitions. 2007-12-02 00:05:18 +00:00
elf_generic.h
endian.h
errno.h
eui64.h
event.h When asked to use kqueue, AIO stores its internal state in the 2008-01-24 17:10:19 +00:00
eventhandler.h o add a mountroot event handler that fires when / is mounted; this information 2008-04-08 17:53:33 +00:00
eventvar.h
exec.h
extattr.h Revert/re-make previous commit in a manner that maintains hyphenation of 2007-03-16 19:18:49 +00:00
fbio.h
fcntl.h Re-implement the client side of rpc.lockd in the kernel. This implementation 2008-06-26 10:21:54 +00:00
fdcio.h
file.h Rework the lifetime management of the kernel implementation of POSIX 2008-06-27 05:39:04 +00:00
filedesc.h Revert UF_OPENING workaround for CURRENT. 2007-05-31 11:51:53 +00:00
filio.h Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found in 2007-04-05 21:10:53 +00:00
firmware.h Cleanup and document the implementation of firmware(9) based on 2007-02-15 17:21:31 +00:00
fnv_hash.h
gmon.h
gpt.h First cut at support for booting a GPT labeled disk via the BIOS bootstrap 2007-10-24 21:33:00 +00:00
hash.h Fix a compiler warning so hash.h can be included in the kernel. This changes 2007-04-09 22:55:14 +00:00
iconv.h
imgact.h Implement the fexecve(2) syscall. 2008-03-31 12:05:52 +00:00
imgact_aout.h
imgact_elf.h
inflate.h
interrupt.h - Add the interrupt vector number to intr_event_create so MI code can 2008-04-11 03:26:41 +00:00
ioccom.h Fix our ioctl(2) implementation when the argument is "int". New 2006-09-27 19:57:02 +00:00
ioctl.h Turn sgtty into a binary-only compatibility interface. 2008-06-14 10:42:18 +00:00
ioctl_compat.h Turn sgtty into a binary-only compatibility interface. 2008-06-14 10:42:18 +00:00
ipc.h Make sure we restrict Linux only IPC calls from being executed 2008-02-12 20:55:03 +00:00
ipmi.h Update the ipmi(4) driver: 2006-09-22 22:11:29 +00:00
jail.h Revert rev. 178124 as requested by kris@. Having jail id not being 2008-06-19 21:41:57 +00:00
joystick.h
kbio.h Fix our ioctl(2) implementation when the argument is "int". New 2006-09-27 19:57:02 +00:00
kdb.h DTrace can enter the debugger from a probe. Add a WHY definition for this. 2008-05-23 04:00:44 +00:00
kenv.h
kernel.h Add sysinit levels for DTrace. 2008-05-18 22:10:10 +00:00
kerneldump.h Define a new kernel dump "architecture", TEXTDUMPMAGIC, which is used 2007-12-26 10:57:35 +00:00
kobj.h Fix typo in a comment: DEFINE_CLASSx => DEFINE_CLASS_x. 2006-08-24 21:09:39 +00:00
ksem.h Rework the lifetime management of the kernel implementation of POSIX 2008-06-27 05:39:04 +00:00
kthread.h kthread_exit needs no stinkin argument. 2007-10-26 17:03:22 +00:00
ktr.h
ktrace.h This patch adds a new ktrace(2) record type, KTR_STRUCT, whose payload 2008-02-23 01:01:49 +00:00
libkern.h strchr() and strrchr() are already present in the kernel, but with less 2007-04-10 21:42:12 +00:00
limits.h
linedisc.h
link_aout.h
link_elf.h Add dl_iterate_phdr function prototype and corresponding dl_phdr_info 2007-04-03 18:33:41 +00:00
linker.h Add hooks for the Compact C Type Format (CTF) data to be attached to 2008-05-23 00:49:39 +00:00
linker_set.h
lock.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
lock_profile.h Fix tinderbox on sun4v 2007-12-16 06:07:34 +00:00
lockf.h Re-implement the client side of rpc.lockd in the kernel. This implementation 2008-06-26 10:21:54 +00:00
lockmgr.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
mac.h Update comments in mac.h. 2007-02-06 16:24:57 +00:00
malloc.h Add support for the DTrace malloc provider which can enable probes 2008-05-23 00:43:36 +00:00
mbpool.h
mbuf.h Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
mchain.h
md4.h
md5.h
mdioctl.h
memrange.h
mman.h Add support to mincore for detecting whether a page is part of a 2008-03-28 04:29:27 +00:00
module.h In keeping with style(9)'s recommendations on macros, use a ';' 2008-03-16 10:58:09 +00:00
mount.h Provide the mutual exclusion between the nfs export list modifications 2008-06-09 10:31:38 +00:00
mouse.h Spell "Kensington Thinking Mouse" correctly. 2006-12-18 18:48:28 +00:00
mpt_ioctl.h Add a new personality to mpt(4) devices to allow userland applications to 2008-05-06 20:49:53 +00:00
mqueue.h
msg.h
msgbuf.h up the default msgbuf limit to 64k.. a verbose boot on i386 on modern 2006-09-03 00:33:19 +00:00
mtio.h
mutex.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
namei.h Add the support for the AT_FDCWD and fd-relative name lookups to the 2008-03-31 12:01:21 +00:00
nlist_aout.h
param.h Re-implement the client side of rpc.lockd in the kernel. This implementation 2008-06-26 10:21:54 +00:00
pciio.h Add ABI backwards compatibility to the FreeBSD 4/5/6 versions of 2007-10-24 20:51:44 +00:00
pcpu.h Move the PCPU_MD_FIELDS last in struct pcpu. While this header is 2008-03-06 17:24:28 +00:00
pioctl.h Fix our ioctl(2) implementation when the argument is "int". New 2006-09-27 19:57:02 +00:00
pipe.h Another problem caused by the knlist_cleardel() potentially dropping 2008-05-23 11:14:03 +00:00
pmc.h Increment major version to mark the ABI change between RELENG_7 and -HEAD. 2008-01-14 06:33:41 +00:00
pmckern.h Kernel and hwpmc(4) support for callchain capture. 2007-12-07 08:20:17 +00:00
pmclog.h Kernel and hwpmc(4) support for callchain capture. 2007-12-07 08:20:17 +00:00
poll.h
posix4.h Update #includes list. 2006-11-11 16:19:12 +00:00
power.h
priority.h Replace (name) with Henric Vestergaard Draboel since it was clear that 2007-01-08 21:21:45 +00:00
priv.h Add a new priv 'PRIV_SCHED_CPUSET' to check if manipulating cpusets is 2008-06-29 17:58:16 +00:00
proc.h Implement the per-open file data for the cdev. 2008-05-21 09:31:44 +00:00
procfs.h
protosw.h Add pru_flush routine so a transport can 2008-04-14 18:06:04 +00:00
ptio.h
ptrace.h
queue.h Introduce REMOVE_NEXT() macro's for SLIST and STAILQ. 2008-05-22 14:40:03 +00:00
random.h
reboot.h
refcount.h
regression.h
resource.h Move the shared cp_time array (counts %sys, %user, %idle etc) to the 2007-11-29 06:34:30 +00:00
resourcevar.h - Use wait-free method to manage ui_sbsize and ui_proccnt fields in the 2008-03-16 21:29:02 +00:00
rman.h Add a convenience function rman_init_from_resource for initializing 2006-06-12 04:06:21 +00:00
rmlock.h Add rm_wowned(9) function to test whether the current thread owns an 2007-11-10 15:06:30 +00:00
rtprio.h Replace (name) with Henric Vestergaard Draboel since it was clear that 2007-01-08 21:21:45 +00:00
runq.h - Restore runq to manipulating threads directly by putting runq links and 2008-03-20 05:51:16 +00:00
rwlock.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
sbuf.h
sched.h - Make SCHED_STATS more generic by adding a wrapper to create the 2008-04-17 04:20:10 +00:00
sdt.h Add the statically defined tracing header. 2008-05-17 02:14:19 +00:00
select.h
selinfo.h Refactor select to reduce contention and hide internal implementation 2007-12-16 06:21:20 +00:00
sem.h Remove extra forward declare of 'struct sem'. 2006-11-07 18:56:48 +00:00
sema.h
semaphore.h Change SEM_VALUE_MAX (maximum value of a POSIX semaphore) from UINT_MAX 2008-06-26 13:51:25 +00:00
serial.h
sf_buf.h
shm.h Make sure we restrict Linux only IPC calls from being executed 2008-02-12 20:55:03 +00:00
sigio.h
signal.h Correct the visibility macro surrounding SIGSYS. 2008-01-19 21:41:31 +00:00
signalvar.h Fix for the panic("vm_thread_new: kstack allocation failed") and 2007-11-05 11:36:16 +00:00
sleepqueue.h Optimize lockmgr in order to get rid of the pool mutex interlock, of the 2008-04-06 20:08:51 +00:00
smp.h Allow a rendezvous with just a specified CPU too. 2008-05-23 04:05:26 +00:00
snoop.h
socket.h Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
socketvar.h Add soreceive_dgram(9), an optimized socket receive function for use by 2008-07-02 23:23:27 +00:00
sockio.h Revise network interface cloning to take an optional opaque 2006-07-09 06:04:01 +00:00
soundcard.h MFP4 (109713): 2006-11-26 11:55:48 +00:00
stack.h Optimize lockmgr in order to get rid of the pool mutex interlock, of the 2008-04-06 20:08:51 +00:00
stat.h Add the libc glue and headers definitions for the *at() syscalls. 2008-03-31 12:14:04 +00:00
statvfs.h
stddef.h
stdint.h
sun_disklabel.h
sx.h - Re-implement lock profiling in such a way that it no longer breaks 2007-12-15 23:13:31 +00:00
syscall.h Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
syscall.mk Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
syscallsubr.h Implement the linux syscalls 2008-04-08 09:45:49 +00:00
sysctl.h - Make SCHED_STATS more generic by adding a wrapper to create the 2008-04-17 04:20:10 +00:00
sysent.h Fix a couple of issues with the stack limit for 32-bit processes on 64-bit 2007-07-12 18:01:31 +00:00
syslimits.h Use the same ARG_MAX for arm than for the other platforms. I don't see any 2007-05-29 15:14:46 +00:00
syslog.h
sysproto.h Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
systm.h Turn dev2unit(), minor(), unit2minor() and minor2unit() into macro's. 2008-06-12 08:30:54 +00:00
taskqueue.h Implement taskqueue_block() and taskqueue_unblock(). These functions allow 2008-03-25 22:38:45 +00:00
termios.h Add missing function prototype for tcgetsid(). 2008-04-18 02:02:33 +00:00
thr.h Add thr_kill2 syscall which sends a signal to a thread in another process. 2007-08-16 05:26:42 +00:00
tiio.h
time.h Remove some DTrace hook definitions that are now in dtrace_bsd.h 2008-05-18 22:11:47 +00:00
timeb.h
timepps.h
timers.h
times.h
timespec.h
timetc.h
timex.h
tree.h Implement RB_PREV() AND RB_FOREACH_REVERSE(). 2007-12-28 07:03:26 +00:00
tty.h Move TTY unrelated bits out of <sys/tty.h>. 2008-05-23 16:06:35 +00:00
ttycom.h Implement POSIX function tcgetsid() which returns session id. 2008-04-15 08:33:32 +00:00
ttydefaults.h Fix faulty character to control-character conversion for CTRL(). 2008-06-05 17:44:18 +00:00
turnstile.h Commit 3/14 of sched_lock decomposition. 2007-06-04 23:51:44 +00:00
types.h Add cpuset, an api for thread to cpu binding and cpu resource grouping 2008-03-02 07:39:22 +00:00
ucontext.h
ucred.h Add padding for anticipated functionality 2007-12-07 01:46:13 +00:00
uio.h Document struct uio.h entries. 2006-11-29 19:08:45 +00:00
umtx.h Add two commands to _umtx_op system call to allow a simple mutex to be 2008-06-24 07:32:12 +00:00
un.h
unistd.h Hide SEEK_DATA and SEEK_HOLE under __BSD_VISIBLE. 2007-04-07 18:31:40 +00:00
unpcb.h Remove explicit locking of struct file. 2007-12-30 01:42:15 +00:00
user.h Rework the lifetime management of the kernel implementation of POSIX 2008-06-27 05:39:04 +00:00
utsname.h
uuid.h
vmmeter.h Change the management of cached pages (PQ_CACHE) in two fundamental 2007-09-25 06:25:06 +00:00
vnode.h Move the head of byte-level advisory lock list from the 2008-04-16 11:33:32 +00:00
vtoc.h Add support for VTOC8 labels (aka sun disk labels). When a label does 2008-03-02 00:52:49 +00:00
wait.h
watchdog.h Align the interfaces for the various watchdogs and make the interface 2006-12-15 21:44:49 +00:00