opnsense-src/sys/sys
Konstantin Belousov e4b9ff3a9e Do not try to create /dev/efi device node before devfs is initialized.
Split efirt.ko initialization into early stage where runtime services
KPI environment is created, to be used e.g. for RTC, and the later
devfs node creation stage, per module.

Switch the efi device to use make_dev_s(9) instead of make_dev(9).  At
least, this gracefully handles the duplicated device name issue.

Remove ARGSUSED comment from efidev_ioctl(), all unused arguments are
annotated with __unused attribute.

Reported by:	ambrisko, O. Hartmann <ohartman@zedat.fu-berlin.de>
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2016-10-16 06:07:43 +00:00
..
disk Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
_bitset.h bitset: introduce helpers to allocate a bitset at runtime 2016-05-06 16:41:23 +00:00
_bus_dma.h
_callout.h
_cpuset.h Fix <sys/_bitset.h> and <sys/_cpuset.h> to not require <sys/param.h>. 2016-05-05 15:43:26 +00:00
_ffcounter.h
_iovec.h
_kstack_cache.h
_lock.h
_lockmgr.h
_mutex.h
_null.h
_pctrie.h
_pthreadtypes.h
_rmlock.h
_rwlock.h
_semaphore.h
_sigset.h
_sockaddr_storage.h
_stack.h
_stdint.h
_sx.h
_task.h Update iflib to support more NIC designs 2016-08-12 21:29:44 +00:00
_termios.h
_timespec.h
_timeval.h
_types.h Pollute more places with off64_t and add __off64_t 2016-05-12 21:18:17 +00:00
_ucontext.h POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
_umtx.h Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
_unrhdr.h
_vm_domain.h
aac_ioctl.h
acct.h
acl.h
agpio.h
aio.h Account for AIO socket operations in thread/process resource usage. 2016-06-21 22:19:06 +00:00
alq.h
apm.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
assym.h
ata.h Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
bio.h Remove unused bio_taskqueue(). 2016-09-19 17:46:15 +00:00
bitset.h bitset: introduce helpers to allocate a bitset at runtime 2016-05-06 16:41:23 +00:00
bitstring.h Fix bitstring allocation on 32-bit platforms 2016-06-24 21:44:46 +00:00
blist.h
boot.h
buf.h Remove prototypes missed in r303951. 2016-08-16 19:43:17 +00:00
buf_ring.h ARM, ARM64: Workaround for buf_ring reordering 2016-06-30 05:18:37 +00:00
bufobj.h vfs: remove the __bo_vnode field from struct vnode 2016-09-30 17:11:03 +00:00
bus.h Implement 'devctl clear driver' to undo a previous 'devctl set driver'. 2016-08-29 22:48:36 +00:00
bus_dma.h
busdma_bufalloc.h
callout.h Extract the calculation of the callout fire time into the new function 2016-07-28 08:57:01 +00:00
capability.h
caprights.h
capsicum.h Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap. 2016-09-21 08:23:33 +00:00
cdefs.h Stop exposing the C11 _Atomic() macro in <sys/cdefs.h>, when compiling 2016-05-29 17:32:19 +00:00
cdio.h
cdrio.h
cfictl.h
chio.h
clock.h Make resettodr_lock accessible outside subr_rtc.c. Protect 2016-09-21 10:15:08 +00:00
cnv.h Remove duplicated declaration. 2016-08-28 07:40:11 +00:00
condvar.h
conf.h Make it explicit that D_MEM cdevsw d_flag is to signify that the 2016-05-01 17:46:56 +00:00
cons.h
consio.h
copyright.h
counter.h
cpu.h
cpuctl.h
cpuset.h Move nested include of <sys/queue.h> inside _KERNEL. 2016-07-14 23:14:10 +00:00
ctype.h
dataacq.h
devicestat.h
devmap.h Move arm's devmap to some generic place, so it can be used 2016-04-26 11:53:37 +00:00
digiio.h
dir.h
dirent.h
disk.h Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
disk_zone.h Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
disklabel.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
diskmbr.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
diskpc98.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
dkstat.h
dnv.h
domain.h
dtrace_bsd.h
dvdio.h
efi.h Do not try to create /dev/efi device node before devfs is initialized. 2016-10-16 06:07:43 +00:00
efiio.h Create /dev/efidev to provide an ioctl interface to 2016-10-11 22:24:30 +00:00
elf.h
elf32.h
elf64.h
elf_common.h Move/add ARM ELF PHDR types to elf_common.h 2016-08-02 20:26:04 +00:00
elf_generic.h
endian.h
errno.h Expose kernel-only errno values if _WANT_KERNEL_ERRNO is defined. 2016-10-01 22:08:07 +00:00
eui64.h
event.h Fix userspace build after r302235: do not expose bool field of the 2016-06-27 23:34:53 +00:00
eventhandler.h cam/ata: Allow drivers to veto ATA disk attachment. 2016-09-28 08:35:05 +00:00
eventvar.h
exec.h exec.h: Move PS_STRINGS define to kernel-only section 2016-05-11 21:14:36 +00:00
extattr.h
fail.h fail(9): Upstreaming some fail point enhancements 2016-03-16 04:22:32 +00:00
fbio.h Provide way for framebuffer driver to request mmap(2) mapping type 2016-10-01 17:43:02 +00:00
fcntl.h
fdcio.h Add raw RX-50 support. These are 400k single sided disks with 80 2016-03-10 00:36:38 +00:00
file.h The sendfile(2) allows to send extra data from userspace before the file 2016-03-29 19:57:11 +00:00
filedesc.h fd: hide fd_modified under CAPABILITIES 2016-09-23 16:47:12 +00:00
filio.h
firmware.h
fnv_hash.h
gmon.h
gpio.h GPIO: Add support for gpio pin interrupts. 2016-04-28 12:03:22 +00:00
gpt.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
gtaskqueue.h Update iflib to support more NIC designs 2016-08-12 21:29:44 +00:00
gzio.h
hash.h
hhook.h
iconv.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
imgact.h exec: Add credential change information into imgp for process_exec hook. 2016-05-26 23:18:54 +00:00
imgact_aout.h
imgact_binmisc.h sys/sys: missed in r298981. 2016-05-03 16:37:09 +00:00
imgact_elf.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
inflate.h
interrupt.h
intr.h INTRNG: Rework handling with resources. Partially revert r301453. 2016-08-19 10:52:39 +00:00
ioccom.h
ioctl.h
ioctl_compat.h
iov.h Clean up repeated "All rights reserved" 2016-03-14 17:41:17 +00:00
iov_schema.h Clean up repeated "All rights reserved" 2016-03-14 17:41:17 +00:00
ipc.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
ipmi.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
jail.h Move IPv4-specific jail functions to new file netinet/in_jail.c 2016-08-09 02:16:21 +00:00
joystick.h
kbio.h
kdb.h
kenv.h
kernel.h The pr_destroy field does not allow us to run the teardown code in a 2016-06-01 10:14:04 +00:00
kerneldump.h
khelp.h
kobj.h [bhnd] Fix DEFINE_CLASS_(2|3) multiple inheritance support. 2016-05-23 03:29:43 +00:00
ksem.h
ksyms.h
kthread.h
ktr.h
ktr_class.h
ktrace.h Trace timeval parameters to the getitimer(2) and setitimer(2) syscalls. 2016-07-13 14:37:58 +00:00
libkern.h Merge ACPICA 20160422. 2016-04-27 19:09:21 +00:00
limits.h
link_aout.h
link_elf.h
linker.h kern_linker: Handle module-loading failures in preloaded .ko files 2016-10-13 02:06:23 +00:00
linker_set.h
lock.h Implement trivial backoff for locking primitives. 2016-08-01 21:48:37 +00:00
lock_profile.h
lockf.h
lockmgr.h Remove lockmgr_waiters(9) and BUF_LOCKWAITERS(9); they were not used 2016-08-05 13:53:28 +00:00
lockstat.h
loginclass.h
mac.h
malloc.h Move IPv6 malloc tag definitions into the IPv6 code. 2016-05-20 04:45:08 +00:00
mbpool.h
mbuf.h Fix typo in comments. 2016-10-15 18:20:15 +00:00
mchain.h
md4.h Ifndef KERNEL the userspace-only routines in sys/md[45].h 2016-05-26 20:37:49 +00:00
md5.h Ifndef KERNEL the userspace-only routines in sys/md[45].h 2016-05-26 20:37:49 +00:00
mdioctl.h
memdesc.h
memrange.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
mman.h mprotect(): Change prototype to comply to POSIX. 2016-08-03 06:33:04 +00:00
module.h sys/module.h: Unbreak MOD_DPF printf 2016-10-08 19:40:58 +00:00
module_khelp.h
mount.h vfs: batch free vnodes in per-mnt lists 2016-09-30 17:27:17 +00:00
mouse.h Add Elantech trackpad support 2016-09-26 22:06:19 +00:00
mpt_ioctl.h
mqueue.h
msg.h Change the return type of msgrcv() to ssize_t as required by POSIX. 2016-07-28 12:22:01 +00:00
msgbuf.h
mtio.h
mutex.h Implement mtx_trylock_spin(9). 2016-07-23 05:30:55 +00:00
namei.h Remove cn_consume from 'struct componentname'. It was never set to anything 2016-03-12 08:50:38 +00:00
nlist_aout.h
numa.h
nv.h
osd.h osd(9): Change array pointer to array pointer type from void* 2016-04-26 19:57:35 +00:00
param.h remove a few stray spaces from sys/param.h 2016-10-12 11:17:10 +00:00
pciio.h
pcpu.h sys/pcpu.h: Revert change introduced in r303890 2016-08-09 21:45:47 +00:00
pctrie.h
pioctl.h
pipe.h
pmc.h Remove a duplicate PMC CPU number 2016-08-03 01:46:55 +00:00
pmckern.h
pmclog.h
poll.h
posix4.h
power.h
priority.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
priv.h Add support to priority code point (PCP) that is an 3-bit field 2016-06-06 09:51:58 +00:00
proc.h Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap. 2016-09-21 08:23:33 +00:00
procctl.h Add the foundation copyrights to procctl kernel sources. 2016-09-23 12:32:20 +00:00
procdesc.h Introduce the PD_CLOEXEC for pdfork(2). 2016-06-08 02:09:14 +00:00
procfs.h Include process IDs in core dumps. 2016-07-18 15:14:23 +00:00
protosw.h The pr_destroy field does not allow us to run the teardown code in a 2016-06-01 10:14:04 +00:00
ptio.h
ptrace.h Add PTRACE_VFORK to trace vfork events. 2016-07-18 14:53:55 +00:00
queue.h queue(3): Enhance queue debugging macros 2016-09-08 21:20:01 +00:00
racct.h Get rid of rctl_lock; use racct_lock where appropriate. The fast paths 2016-04-21 16:22:52 +00:00
random.h Random bit generator (RBG) driver for RPi and RPi2. 2016-07-19 18:07:47 +00:00
rangelock.h
rctl.h Add four new RCTL resources - readbps, readiops, writebps and writeiops, 2016-04-07 04:23:25 +00:00
reboot.h
refcount.h
regression.h
resource.h Define the id_t type as required by POSIX. 2016-06-01 07:45:03 +00:00
resourcevar.h Implement process-shared locks support for libthr.so.3, without 2016-02-28 17:52:33 +00:00
rman.h Consistently use device_t 2016-08-09 19:32:06 +00:00
rmlock.h
rtprio.h
runq.h
rwlock.h Microoptimize locking primitives by avoiding unnecessary atomic ops. 2016-06-01 18:32:20 +00:00
sbuf.h
sched.h Let <sched.h> define struct timespec. 2016-05-31 08:07:40 +00:00
sdt.h sdt: annotate the probe test as likely to fail 2016-06-15 08:34:36 +00:00
select.h
selinfo.h
sem.h
sema.h
seq.h
serial.h
sf_buf.h
sglist.h Add sglist functions for working with arrays of VM pages. 2016-05-20 23:28:43 +00:00
shm.h Add shmatt_t. 2016-07-26 17:23:49 +00:00
sigio.h
signal.h Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap. 2016-09-21 08:23:33 +00:00
signalvar.h Provide helper macros to detect 'non-silent SBDRY' state and to 2016-07-03 18:19:48 +00:00
sleepqueue.h fail(9): Only gather/print stacks if STACK is enabled 2016-03-17 01:05:53 +00:00
slicer.h
smp.h new x86 smp topology detection code 2016-04-04 16:09:29 +00:00
snoop.h
sockbuf.h Refactor the AIO subsystem to permit file-type-specific handling and 2016-03-01 18:12:14 +00:00
socket.h Make CMSG_*() work without having NULL available. 2016-05-31 13:32:33 +00:00
socketvar.h capsicum: propagate rights on accept(2) 2016-09-22 09:58:46 +00:00
sockio.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
sockopt.h
sockstate.h
soundcard.h Don't test for INKERNEL to check whether we're in kernel space. 2016-06-04 18:57:00 +00:00
spigenio.h [spigen] add the userland ioctl API for spigen. 2016-05-27 01:40:33 +00:00
stack.h
stat.h
statvfs.h
stdatomic.h
stddef.h
stdint.h
sun_disklabel.h
sx.h Microoptimize locking primitives by avoiding unnecessary atomic ops. 2016-06-01 18:32:20 +00:00
syscall.h Remove the obsolete and unused openbsd_poll system call. (Phase 2) 2016-08-18 10:54:39 +00:00
syscall.mk Remove the obsolete and unused openbsd_poll system call. (Phase 2) 2016-08-18 10:54:39 +00:00
syscallsubr.h Eliminate use of sys_fsync() and sys_fdatasync(). 2016-08-15 20:11:52 +00:00
sysctl.h Provide kern.maxphys sysctl, which returns MAXPHYS. Naming matches NetBSD. 2016-09-29 23:07:28 +00:00
sysent.h Split MAKE_SYSENT into two parts so that the initializer part can be 2016-07-25 08:13:50 +00:00
syslimits.h
syslog.h
sysproto.h Remove the obsolete and unused openbsd_poll system call. (Phase 2) 2016-08-18 10:54:39 +00:00
systm.h Remove BSD and USL copyright and update license block in in_prot.c, as the 2016-07-28 18:39:30 +00:00
taskqueue.h Update iflib to support more NIC designs 2016-08-12 21:29:44 +00:00
terminal.h
termios.h
thr.h
tiio.h
time.h Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
timeb.h
timeet.h
timeffc.h
timepps.h
timers.h
times.h
timespec.h
timetc.h Implement userspace gettimeofday(2) with HPET timecounter. 2016-08-17 09:52:09 +00:00
timex.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
tree.h
tty.h
ttycom.h
ttydefaults.h
ttydevsw.h
ttydisc.h
ttyhook.h
ttyqueue.h
turnstile.h Typo in comment. 2016-05-12 06:20:26 +00:00
types.h Pollute more places with off64_t and add __off64_t 2016-05-12 21:18:17 +00:00
ucontext.h POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
ucred.h
uio.h
umtx.h Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
un.h
unistd.h Simplify AIO initialization now that it is standard. 2016-03-09 19:05:11 +00:00
unpcb.h Handle races with listening socket close when connecting a unix socket. 2016-08-08 20:25:04 +00:00
user.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
utsname.h
uuid.h
vdso.h Implement userspace gettimeofday(2) with HPET timecounter. 2016-08-17 09:52:09 +00:00
vmem.h
vmmeter.h Make vm_pageout_wakeup_thresh a u_int rather than an int. 2016-07-20 00:09:22 +00:00
vnode.h Limit scope of the optimization in r306608 to dounmount() caller only. 2016-10-07 11:38:28 +00:00
vtoc.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
wait.h
watchdog.h
zlib.h
zutil.h