opnsense-src/sys/sys
Mariusz Zaborski 0bb5e6ef80 Remove the nvlist_.*[fv] functions.
Those functions are problematic, because there is no way to report
memory allocation problems without complicating the API, so we can
either abort or potentially return invalid results. None of which is
acceptable.

In most cases the caller knows the size of the name, so he can allocate
buffer on the stack and use snprintf(3) to prepare the name.

After some discussion the conclusion is to removed those functions,
which also simplifies the API.

Discussed with: pjd, rstone
Approved by:	pjd (mentor)
2015-04-29 22:57:04 +00:00
..
_bitset.h Generalize the bitset operations, present in cpuset and offer a KPI to 2013-05-09 00:04:59 +00:00
_bus_dma.h
_callout.h Change the c_iflags and c_flags fields to short rather then int. This 2015-03-31 00:15:27 +00:00
_cpuset.h Bump the default size of cpuset_t masks in userland from 128 bits to 256. 2014-08-20 16:05:15 +00:00
_ffcounter.h
_iovec.h
_kstack_cache.h
_lock.h
_lockmgr.h
_mutex.h Tweak comments. 2012-11-11 23:25:47 +00:00
_null.h
_pctrie.h - Add a new general purpose path-compressed radix trie which can be used 2013-05-12 04:05:01 +00:00
_pthreadtypes.h
_rmlock.h Several improvements to rmlock(9). Many of these are based on patches 2013-06-25 18:44:15 +00:00
_rwlock.h Drop the 3rd clause from all 3 clause BSD licenses where I am the sole 2014-02-05 18:13:27 +00:00
_semaphore.h
_sigset.h
_sockaddr_storage.h
_stack.h
_stdint.h
_sx.h
_task.h Revert r256587. 2013-10-18 11:25:08 +00:00
_termios.h
_timespec.h
_timeval.h
_types.h Change the type of blksize_t from uint32_t to a POSIX compliant int32_t 2015-01-04 15:26:02 +00:00
_umtx.h The current POSIX semaphore implementation stores the _has_waiters flag 2014-10-24 20:02:44 +00:00
_unrhdr.h Move the definition of the struct unrhdr into a separate header file, 2013-08-30 07:37:45 +00:00
aac_ioctl.h
acct.h
acl.h
agpio.h A rewrite of the i810 bits of the agp(4) driver. New driver supports 2012-05-22 10:59:26 +00:00
aio.h Add new system call - aio_mlock(). The name speaks for itself. It allows 2013-06-08 13:27:57 +00:00
alq.h
apm.h Add a partition type for nandfs to the apm, bsd, gpt and vtoc8 schemes. 2012-05-25 20:33:34 +00:00
assym.h
ata.h Add defines for various FIRST PARTY DMA SEND subcommands. 2014-10-22 01:35:30 +00:00
bio.h Be more explicit about what each bio_cmd & bio_flags value means. 2013-03-23 16:55:07 +00:00
bitset.h Expand the bitcount* API to support 64-bit integers, plain ints and longs 2015-03-20 10:27:06 +00:00
bitstring.h
blist.h
boot.h howto_names: unify declaration 2014-03-11 10:13:06 +00:00
buf.h Add B_KVAALLOC and B_UNMAPPED to the buf flag name list. 2015-04-07 19:37:49 +00:00
buf_ring.h Plug memory ordering holes in buf_ring_enqueue. For at least some 2014-10-30 16:26:17 +00:00
bufobj.h The vinactive() call in vgonel() may start writes for the dirty pages, 2014-12-13 16:02:37 +00:00
bus.h Fix SR-IOV passthrough devices to allow ppt to attach 2015-03-10 23:27:13 +00:00
bus_dma.h Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
busdma_bufalloc.h Fix integer truncation bug in malloc(9) 2015-04-01 12:42:26 +00:00
callout.h Adopt jhb's suggested changes, updated comments and callout_migration() moving 2015-03-31 00:18:00 +00:00
capability.h Fix a comment in capability.h: it got renamed to capsicum.h, not 2014-03-16 21:05:00 +00:00
caprights.h Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
capsicum.h Introduce a cap_ioctl_t used for the 'cmds' arguments to cap_ioctls_limit() 2015-03-16 17:42:53 +00:00
cdefs.h Cleanup a bit the clang attributes for type safety checking. 2015-04-25 18:17:08 +00:00
cdio.h
cdrio.h
cfictl.h
chio.h Update chio(1) and ch(4) to support reporting element designators. 2013-04-19 20:03:51 +00:00
clock.h
condvar.h MFcalloutng: 2013-03-04 12:20:48 +00:00
conf.h Remove the d_thread_t compatibility shim provided in 5.0 to handle the 2015-01-29 19:55:33 +00:00
cons.h Prefer vt(4) for UEFI boot 2014-07-02 13:24:21 +00:00
consio.h vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font 2014-10-23 12:38:05 +00:00
copyright.h Add the ability to print a vendor copyright in dmesg. 2015-02-09 23:04:30 +00:00
counter.h - While we are spreading the counter(9) across network stack, more userland 2013-10-15 10:05:37 +00:00
cpu.h Add support to get the cpu ID from its device driver in a generic way. 2015-02-19 12:47:48 +00:00
cpuctl.h Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID, use 2014-06-20 13:13:38 +00:00
cpuset.h Use __builtin_popcnt() to implement a BIT_COUNT() operation for bitsets and 2015-02-09 21:03:23 +00:00
ctype.h
dataacq.h
devicestat.h MFprojects/camlock r254905: 2013-10-16 09:12:40 +00:00
digiio.h
dir.h
dirent.h
disk.h Teach CTL to ask GEOM devices about BIO_DELETE support. 2015-02-13 13:26:23 +00:00
disklabel.h Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
diskmbr.h Add MBR EFI partition type definition 2015-01-09 19:37:12 +00:00
diskpc98.h Change <sys/diskpc98.h> to not redefine the same symbols that are 2013-08-07 00:00:48 +00:00
dkstat.h
dnv.h Move libnv into the kernel and hook it into the kernel build 2015-03-01 00:34:27 +00:00
domain.h Finish r274118: remove useless fields from struct domain. 2014-11-06 14:39:04 +00:00
dtrace_bsd.h Restore the trap type argument to the DTrace trap hook, removed in r268600. 2014-12-23 15:38:19 +00:00
dvdio.h
efi.h Remove ia64. 2014-07-07 00:27:09 +00:00
elf.h
elf32.h Update ELF headers to include additional defines 2015-01-02 15:36:29 +00:00
elf64.h Update ELF headers to include additional defines 2015-01-02 15:36:29 +00:00
elf_common.h Add R_AARCH64_NONE, the null relocation. 2015-04-09 10:28:05 +00:00
elf_generic.h
endian.h
errno.h POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos. 2013-05-04 19:07:22 +00:00
eui64.h
event.h prevent doing filter ops locking for staticly compiled filter ops... 2014-11-16 01:18:41 +00:00
eventhandler.h hook userland threads suspend + resume into acpi suspend code 2015-01-27 17:33:18 +00:00
eventvar.h Add a resource limit for the total number of kqueues available to the 2013-10-21 16:44:53 +00:00
exec.h Update the comments in exec.h with help from jilles. 2014-08-08 22:30:41 +00:00
extattr.h Fix return type of extattr_set_* and fix rmextattr(8) utility. 2013-04-02 05:30:41 +00:00
fail.h
fbio.h vt(4): Add support to "downgrade" from eg. vt_fb to vt_vga 2015-03-01 12:54:22 +00:00
fcntl.h Support file verification in MAC. 2015-04-22 01:54:25 +00:00
fdcio.h - Cleanups pc98 code. 2014-09-28 11:32:46 +00:00
file.h filedesc: simplify fget_unlocked & friends 2015-02-17 23:54:06 +00:00
filedesc.h fd: remove filedesc argument from fdclose 2015-04-11 15:40:28 +00:00
filio.h
firmware.h
fnv_hash.h Remove ia64. 2014-07-07 00:27:09 +00:00
gmon.h
gpio.h Add a new ioctl to allow the setting of GPIO pin names. 2015-03-08 00:47:50 +00:00
gpt.h Add GUID and alias for Apple Core Storage partition. 2015-03-12 18:51:31 +00:00
gzio.h Reimplement support for userland core dump compression using a new interface 2015-03-09 03:50:53 +00:00
hash.h Add a complete implementation of MurmurHash3. Tweak both implementations 2014-10-18 22:15:11 +00:00
hhook.h For vendors like Juniper, extensibility for sockets is important. A 2014-08-18 23:45:40 +00:00
iconv.h Fix improper handling of variadic args with ICDEBUG 2012-05-21 02:30:22 +00:00
imgact.h Implement support for binary to requesting specific stack size for the 2015-04-15 08:13:53 +00:00
imgact_aout.h Turns out the emulators still need/want a_magic, so put it back here. 2012-06-28 07:37:46 +00:00
imgact_binmisc.h sys/kern/imgact_binmisc.c -- free the right pointer mask vs magic 2014-04-08 22:12:01 +00:00
imgact_elf.h Improve support for XSAVE with debuggers. 2014-11-21 20:53:17 +00:00
inflate.h
interrupt.h Migrate ie->ie_assign_cpu and associated code to use an int for CPU rather 2014-09-17 17:33:22 +00:00
ioccom.h
ioctl.h
ioctl_compat.h
iov.h Pass SR-IOV configuration to kernel using an nvlist 2015-03-01 00:40:57 +00:00
iov_schema.h Add infrastructure for exporting config schema from PF drivers 2015-03-01 00:40:42 +00:00
ipc.h Fix build if COMPAT_43 is defined without one of 2012-10-22 02:59:55 +00:00
ipmi.h
jail.h Allow the kern.osrelease and kern.osreldate sysctl values to be set in a 2015-02-27 16:28:55 +00:00
joystick.h
kbio.h
kdb.h Add constant missed in r244099 2012-12-10 23:12:51 +00:00
kenv.h
kernel.h Spell raccdt in a more conventional way in a comment. 2014-05-06 10:53:51 +00:00
kerneldump.h Bring in the start of the arm64 kernel. 2015-04-13 14:43:10 +00:00
khelp.h For vendors like Juniper, extensibility for sockets is important. A 2014-08-18 23:45:40 +00:00
kobj.h
ksem.h Add a new fo_fill_kinfo fileops method to add type-specific information to 2014-09-22 16:20:47 +00:00
ksyms.h
kthread.h
ktr.h Right now LOCK_DEBUG is enabled if KTR is on. 2013-12-02 22:34:47 +00:00
ktr_class.h give others fair warning that _SPARE2 isn't just cxgb, but used by large 2015-03-02 20:05:16 +00:00
ktrace.h Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
libkern.h Expand the bitcount* API to support 64-bit integers, plain ints and longs 2015-03-20 10:27:06 +00:00
limits.h
link_aout.h
link_elf.h Add rtld private interface for dso to detect dynamic loading 2015-01-03 18:09:53 +00:00
linker.h The current limit of 100k for the linker hints file is getting a bit 2014-11-29 17:29:30 +00:00
linker_set.h Add support for empty data sets. Data set begin and end pointers 2014-07-02 08:49:06 +00:00
lock.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
lock_profile.h
lockf.h
lockmgr.h Fix two issues with lockmgr(9) LK_CAN_SHARE() test, which determines 2014-11-02 13:10:31 +00:00
lockstat.h
loginclass.h
mac.h
malloc.h Make use of allocation attributes in system headers. 2015-04-07 14:47:27 +00:00
mbpool.h All mbuf external free functions never fail, so let them be void. 2014-07-11 13:58:48 +00:00
mbuf.h Quiet compiler warnings in mbuf.h 2015-04-22 01:35:29 +00:00
mchain.h
md4.h
md5.h
mdioctl.h Add "null" backend to mdconfig(8). This does exactly what the name 2013-12-04 07:38:23 +00:00
memdesc.h Reform the busdma API so that new types may be added without modifying 2013-02-12 16:57:20 +00:00
memrange.h
mman.h Retire the unimplemented MAP_RENAME and MAP_NORESERVE flags to mmap(2). 2014-10-18 12:28:51 +00:00
module.h Fix a very minor typo. 2015-04-12 11:23:59 +00:00
module_khelp.h Now that the necessary infrastructure is in place to ensure hhook points which 2013-06-15 10:38:31 +00:00
mount.h File systems that do not use the buffer cache (such as ZFS) must 2015-04-15 20:16:31 +00:00
mouse.h Improve Synaptics support for newer touchpads. 2015-04-11 18:44:07 +00:00
mpt_ioctl.h
mqueue.h
msg.h
msgbuf.h
mtio.h Significant upgrades to sa(4) and mt(1). 2015-02-23 21:59:30 +00:00
mutex.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
namei.h Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
nlist_aout.h
nv.h Remove the nvlist_.*[fv] functions. 2015-04-29 22:57:04 +00:00
nv_impl.h Remove the nvlist_.*[fv] functions. 2015-04-29 22:57:04 +00:00
nvlist_impl.h Move libnv into the kernel and hook it into the kernel build 2015-03-01 00:34:27 +00:00
nvpair_impl.h Move libnv into the kernel and hook it into the kernel build 2015-03-01 00:34:27 +00:00
osd.h
param.h Bump __FreeBSD_version for smb(4) changes in r281985 2015-04-29 22:50:41 +00:00
pciio.h Add support for displaying VPD for PCI devices via pciconf. 2014-01-20 20:56:09 +00:00
pcpu.h Add zpcpu_get_cpu() that converts base pointer of UMA_ZPCPU_ZONE 2014-02-10 19:47:14 +00:00
pctrie.h Mark unused static inline functions defined by the PCTRIE_DEFINE() macro 2013-12-28 21:31:58 +00:00
pioctl.h
pipe.h Ignore the error from pipespace_new when creating a pipe. 2014-05-02 00:52:13 +00:00
pmc.h Fix the build. Commit the last part of e500 PMC. 2015-04-19 00:33:21 +00:00
pmckern.h Use __predict_false() on sensitive lock paths as most of the times, 2014-01-07 14:03:42 +00:00
pmclog.h
poll.h Add the ppoll() system call. 2014-11-13 05:26:14 +00:00
posix4.h
power.h
priority.h
priv.h Add procctl(2) PROC_TRACE_CTL command to enable or disable debugger 2015-01-18 15:13:11 +00:00
proc.h Add a WITNESS_WARN check to STOPEVENT() to match the one in _STOPEVENT(). 2015-01-31 02:15:16 +00:00
procctl.h Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
procdesc.h Correct typo in comment 2014-07-30 00:28:29 +00:00
procfs.h Remove THRMISC_VERSION. The thrmisc structure doesn't include a version 2015-04-16 12:58:51 +00:00
protosw.h Merge from projects/sendfile: extend protocols API to support 2014-11-30 13:24:21 +00:00
ptio.h
ptrace.h
queue.h Pass macro arguments properly. 2015-02-24 17:36:44 +00:00
racct.h Add kern.racct.enable tunable and RACCT_DISABLED config option. 2015-04-29 10:23:02 +00:00
random.h This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random. 2014-10-30 21:21:53 +00:00
rangelock.h Change the queue of locks in kern_rangelock.c from holding lock requests in 2013-08-15 20:19:17 +00:00
rctl.h Add CPU percentage limit enforcement to RCTL. The resouce name is "pcpu". 2012-10-26 16:01:08 +00:00
reboot.h
refcount.h Drop the 3rd clause from all 3 clause BSD licenses where I am the sole 2014-02-05 18:13:27 +00:00
regression.h
resource.h Add a resource limit for the total number of kqueues available to the 2013-10-21 16:44:53 +00:00
resourcevar.h The process spin lock currently has the following distinct uses: 2014-11-26 14:10:00 +00:00
rman.h Nuke the never-used RF_TIMESHARE feature, reducing the complexity of the 2014-07-16 22:18:19 +00:00
rmlock.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
rtprio.h
runq.h
rwlock.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
sbuf.h Add a new flag, SBUF_INCLUDENUL, and new get/set/clear functions for flags. 2015-03-14 16:02:11 +00:00
sched.h rename scheduler->swapper and SI_SUB_RUN_SCHEDULER->SI_SUB_LAST 2013-07-24 09:45:31 +00:00
sdt.h Define _DTRACE_VERSION in sdt.h rather than setting it manually. This is 2014-09-02 23:43:06 +00:00
select.h Drop explicit unsigned from FD_SETSIZE constant 2014-04-28 13:42:41 +00:00
selinfo.h
sem.h Where appropriate, use the modern terms for the one true time base 2014-12-21 05:07:11 +00:00
sema.h
seq.h Constify some const parameters in seq.h. 2015-04-29 04:08:17 +00:00
serial.h
sf_buf.h Add arch-specific macro SFBUF_PHYS_DMAP(), which should translate the 2014-08-20 08:02:38 +00:00
sglist.h Add sglist_append_bio(9) to append a struct bio's data to a sglist 2014-01-13 04:41:08 +00:00
shm.h
sigio.h
signal.h
signalvar.h Make SIGSTOP working for sleeps done while waiting for fifo readers or 2015-01-18 15:03:26 +00:00
sleepqueue.h Reflect the chanages in sleepqueue.h and subr_sleepqueue.c 2014-09-22 19:14:27 +00:00
slicer.h Add a new geom class which allows to divide NAND Flash chip 2012-05-22 08:33:14 +00:00
smp.h Create a cpuset mask for each NUMA domain that is available in the 2015-01-08 15:53:13 +00:00
snoop.h
sockbuf.h sbspace: size of bleft, mleft must match sockbuf fields to avoid 2015-02-13 23:19:35 +00:00
socket.h Remove SF_KQUEUE code. This code was developed at Netflix, but was not 2014-11-11 20:32:46 +00:00
socketvar.h Replace struct filedesc argument in getsock_cap with struct thread 2015-04-11 16:00:33 +00:00
sockio.h ifmedia changes: 2015-04-07 21:31:17 +00:00
sockopt.h
sockstate.h
soundcard.h
stack.h
stat.h Add futimens and utimensat system calls. 2015-01-23 21:07:08 +00:00
statvfs.h
stdatomic.h Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4 2014-04-01 14:46:11 +00:00
stddef.h
stdint.h Make the wchar_t type machine dependent. 2012-06-24 04:15:58 +00:00
sun_disklabel.h
sx.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
syscall.h Regen. 2015-04-18 21:50:53 +00:00
syscall.mk Regen. 2015-04-18 21:50:53 +00:00
syscallsubr.h Modify kern___getcwd() to take max pathlen limit as an additional 2015-04-21 13:55:24 +00:00
sysctl.h Define a convenience macro, SYSCTL_OUT_STR() for handling strings the 2015-03-14 21:38:51 +00:00
sysent.h Fix up module unload for syscall_module_handler consumers. 2014-11-01 22:36:40 +00:00
syslimits.h
syslog.h Add static/const keywords to the arrays. 2013-04-09 16:16:34 +00:00
sysproto.h Regen. 2015-04-18 21:50:53 +00:00
systm.h Make vpanic() externally visible so that it can be called as part of the 2015-04-24 03:17:21 +00:00
taskqueue.h Remove taskqueue_start_threads_pinned(); there's noa generic cpuset version of this. 2015-02-25 21:59:03 +00:00
terminal.h vt(4): Adjust the cursor position after changing the window size 2014-11-01 17:05:15 +00:00
termios.h
thr.h
tiio.h
time.h Where appropriate, use the modern terms for the one true time base 2014-12-21 05:07:11 +00:00
timeb.h
timeet.h Add support for event timers whose clock frequency can change while running. 2014-04-02 15:56:11 +00:00
timeffc.h
timepps.h Add mutex support to the pps_ioctl() API in the kernel. 2015-03-07 18:23:32 +00:00
timers.h
times.h
timespec.h
timetc.h On some Intel CPUs with a P-state but not C-state invariant TSC the TSC 2015-01-05 20:44:44 +00:00
timex.h This is a white-space/comment cleanup commit as a precursor for 2014-09-19 07:44:49 +00:00
tree.h Provide individual prototype and generate macros for the red-black tree. 2015-01-24 12:43:36 +00:00
tty.h - Rename tty_makedev() into tty_makedevf() and make it capable 2013-12-18 12:50:43 +00:00
ttycom.h
ttydefaults.h Add static/const keywords to the arrays. 2013-04-09 16:16:34 +00:00
ttydevsw.h
ttydisc.h
ttyhook.h
ttyqueue.h
turnstile.h Drop the 3rd clause from all 3 clause BSD licenses where I am the sole 2014-02-05 18:13:27 +00:00
types.h Expand the bitcount* API to support 64-bit integers, plain ints and longs 2015-03-20 10:27:06 +00:00
ucontext.h Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as 2015-01-31 21:43:46 +00:00
ucred.h cred: add proc_set_cred_init helper 2015-03-21 20:24:54 +00:00
uio.h Remove zero-copy sockets code. It only worked for anonymous memory, 2013-09-16 06:25:54 +00:00
umtx.h The current POSIX semaphore implementation stores the _has_waiters flag 2014-10-24 20:02:44 +00:00
un.h Add placeholder constants to reserve a portion of the socket option 2013-02-01 15:32:20 +00:00
unistd.h Implement syscall clock_getcpuclockid2, so we can get a clock id 2012-08-17 02:26:31 +00:00
unpcb.h Replace 4.4BSD Lite's unix domain socket backpressure hack with a cleaner 2014-03-13 18:42:12 +00:00
user.h Add sysctl kern.proc.cwd 2014-11-06 08:12:34 +00:00
utsname.h
uuid.h Decouple the UUID generator from network interfaces by having MAC 2013-07-24 04:24:21 +00:00
vdso.h Update the vdso timehands only via tc_windup(). 2015-01-20 03:54:30 +00:00
vmem.h Make ZFS ARC track both KVA usage and fragmentation. 2015-04-03 14:45:48 +00:00
vmmeter.h Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
vnode.h Support file verification in MAC. 2015-04-22 01:54:25 +00:00
vtoc.h Add a partition type for nandfs to the apm, bsd, gpt and vtoc8 schemes. 2012-05-25 20:33:34 +00:00
wait.h wait: Make sure WIFSIGNALED(s) is false if WIFCONTINUED(s) is true. 2013-08-11 14:15:01 +00:00
watchdog.h watchdogd(8) and watchdog(4) enhancements. 2013-02-27 19:03:31 +00:00
zlib.h Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
zutil.h Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00