opnsense-src/sys/sys
Poul-Henning Kamp 2195e4207a Reference count struct tty.
Add two new functions: ttyref() and ttyrel().  ttymalloc() creates a struct
tty with a reference count of one.  when ttyrel sees the count go to zero,
struct tty is freed.

Hold references for open ttys and for ttys which are controlling terminal
for sessions.

Until drivers start using ttyrel(), this commit will make no difference.
2004-06-09 09:41:30 +00:00
..
_iovec.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
_label.h Improve consistency of include file guards in src/sys/sys by terminating 2004-05-10 18:38:07 +00:00
_lock.h
_mutex.h Add some basic support for measuring sleep mutex contention to the 2004-01-25 01:59:27 +00:00
_null.h Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) 2004-03-05 08:10:19 +00:00
_semaphore.h The sem_timedwait() and ksem_timedwait() functions both 2004-02-03 22:27:03 +00:00
_sigset.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
_task.h Defer the vrele() on a jail's root vnode reference from prison_free() 2004-01-23 20:44:26 +00:00
_timespec.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
_timeval.h Move struct timeval to its own header so that it can be shared between 2002-12-31 04:08:41 +00:00
_types.h Move details of dev_t (and udev_t) to <sys/_types.h>. 2003-03-28 15:27:30 +00:00
aac_ioctl.h Do some small cleanups to comments and remove AACQ_COMPLETE definitions since 2004-02-07 17:40:38 +00:00
acct.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
acl.h Improve consistency of include file guards in src/sys/sys by terminating 2004-05-10 18:38:07 +00:00
agpio.h Add simple support for AGP 3.0 including enabling 8x mode. The simple 2003-10-23 18:08:56 +00:00
aio.h
alq.h Add an explicit credential argument to alq_open() to allow the caller to 2003-06-22 22:28:56 +00:00
assym.h These are changes to allow to use the Intel C/C++ compiler (lang/icc) 2004-03-12 21:45:33 +00:00
ata.h Whitespace cleanup 2004-05-20 15:09:41 +00:00
bio.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
bitstring.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
blist.h Move the definitions of SWAPBLK_NONE and SWAPBLK_MASK from vm_page.h to 2004-06-04 04:03:26 +00:00
buf.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
bus.h Add a devclass level to the dev sysctl tree, in order to support per- 2004-06-04 10:23:00 +00:00
bus_dma.h Document the lockfunc and lockfuncarg arguments to bus_dma_tag_create() in 2003-11-07 23:29:42 +00:00
callout.h 1. Remove callout_stop binary compatibility. 2004-04-20 15:49:31 +00:00
cdefs.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
cdio.h Remove no longer existant CDIOCREADAUDIO ioctl. 2003-10-20 09:29:40 +00:00
cdrio.h * Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec. 2002-10-18 22:03:39 +00:00
chio.h Use symbolic constants instead of "4". 2003-05-31 16:54:37 +00:00
clist.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
clock.h
condvar.h Name the pri argument to cv_broadcastpri() to match the existing style of 2004-05-05 21:57:44 +00:00
conf.h Move the line discipline related stuff out of <sys/conf.h> and into 2004-06-04 15:25:36 +00:00
cons.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
consio.h
copyright.h Happy 2004! 2003-12-31 22:27:51 +00:00
ctype.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
dataacq.h
device_port.h
devicestat.h Add an XXX comment with a TODO item for next time we run a revision 2003-05-31 21:10:01 +00:00
digiio.h
dir.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
dirent.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
disk.h I think the divorce successed, so stop #including <geom/geom_disk.h> 2003-04-01 18:55:04 +00:00
disklabel.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
diskmbr.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
diskpc98.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
dkstat.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
domain.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
dvdio.h
elf32.h
elf64.h
elf_common.h Fix typo (in comment): s/IA-46/IA-64/ 2004-05-05 02:38:54 +00:00
elf_generic.h
endian.h Quiet warnings about mis-matched pointer assignment. 2003-10-15 20:05:57 +00:00
errno.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
eui64.h Add support for an /etc/eui64 file modeled on /etc/ethers. The API is 2004-05-26 22:58:06 +00:00
event.h Tweak the definition of the EV_SET macro so that it evaluates each 2003-02-02 19:39:51 +00:00
eventhandler.h Make the process_exit eventhandler run without Giant. Add Giant hooks 2004-03-14 02:06:28 +00:00
eventvar.h
exec.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
extattr.h Userspace prototypes for the extattr_list_*() system calls. 2003-06-04 04:04:24 +00:00
fbio.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
fcntl.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
fdcio.h
file.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
filedesc.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
filio.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
fnv_hash.h
gmon.h Moved most of the "MI" definitions and declarations from <machine/profile.h> 2004-05-19 15:41:26 +00:00
gpt.h o Include <sys/uuid.h>. This avoids that applications such as 2002-11-10 20:13:58 +00:00
iconv.h Make msdosfs long filenames matching case insensitive again. 2003-12-08 08:32:20 +00:00
imgact.h Fixed some style bugs (useless forward declarations of structs and 2004-04-24 06:44:33 +00:00
imgact_aout.h Define MID_ARM6. 2004-05-04 22:49:47 +00:00
imgact_elf.h Add an additional field to the elf brandinfo structure to support 2003-12-23 02:42:39 +00:00
inflate.h
interrupt.h Expand the argument to the ithread enable/disable helper hooks from an 2003-11-17 06:08:10 +00:00
ioccom.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
ioctl.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
ioctl_compat.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
ipc.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
jail.h Give jail(8) the feature to allow raw sockets from within a 2004-04-26 19:46:52 +00:00
joystick.h
jumbo.h Fix 2 vm_offset_t -> vm_paddr_t missed in previous commit. 2003-03-25 01:47:29 +00:00
kbio.h
kenv.h
kernel.h Remove the /* 1.2 */ comment which was orphaned by previous commit. 2004-03-10 09:23:27 +00:00
kerneldump.h Add kernel dump support, based on the ia64 version (which was committed 2002-10-20 17:03:15 +00:00
kobj.h * Add multiple inheritance to kobj. Each class can have zero or more base 2003-10-16 09:16:28 +00:00
kse.h GC the unused <machine/kse.h> file. 2003-12-24 00:51:30 +00:00
kthread.h
ktr.h Retire the KTR_LOCKMGR bit and use it to log eventhandler messages 2003-03-11 20:07:22 +00:00
ktrace.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
libkern.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
limits.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
linedisc.h Make linesw[] an array of pointers to linedesc instead of an array of 2004-06-07 20:45:45 +00:00
link_aout.h
link_elf.h Implement dlinfo() function. 2003-02-13 17:47:44 +00:00
linker.h Make a small revision to the api between the elf linker core and the 2004-05-16 20:00:28 +00:00
linker_set.h These are changes to allow to use the Intel C/C++ compiler (lang/icc) 2004-03-12 21:45:33 +00:00
lock.h Rework witness_lock() to make it slightly more useful and flexible. 2004-01-28 20:39:57 +00:00
lockf.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
lockmgr.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
mac.h Improve consistency of include file guards in src/sys/sys by terminating 2004-05-10 18:38:07 +00:00
mac_policy.h Improve consistency of include file guards in src/sys/sys by terminating 2004-05-10 18:38:07 +00:00
malloc.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
mbpool.h Add a facility for devices, specifically network interfaces, that require 2003-07-15 08:59:38 +00:00
mbuf.h Introduce a netisr to deliver kernel-generated routing, avoiding 2004-06-09 02:48:23 +00:00
mchain.h Some style fixes. 2003-02-21 16:24:49 +00:00
md4.h
md5.h
mdioctl.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
memrange.h
mman.h Remove mlockall() and munlockall() from the list of unimplemented 2004-04-27 13:13:20 +00:00
module.h
mount.h Belatedly remove the getvfsent(3) API. All the consumers have been 2004-04-11 21:36:31 +00:00
mouse.h
msg.h Add const qualifier to data argument for msgsnd. 2003-01-26 20:09:34 +00:00
msgbuf.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
mtio.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
mutex.h Invert the logic of NET_LOCK_GIANT(), and remove the one reference to it. 2004-03-28 23:12:19 +00:00
namei.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
nlist_aout.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
param.h Make the remaining serial drivers call ttyioctl() rather than calling 2004-06-04 08:02:37 +00:00
pciio.h
pcpu.h Change the type of the various CPU masks to cpumask_t. Note that as 2004-03-27 18:21:24 +00:00
pioctl.h
pipe.h Revise the direct or optimized case to use uiomove_fromphys() by the reader 2004-03-27 19:50:23 +00:00
poll.h
posix4.h Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
power.h
priority.h
proc.h Move TDF_DEADLKTREAT into td_pflags (and rename it accordingly) to avoid 2004-06-03 01:47:37 +00:00
procfs.h
protosw.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
ptio.h
ptrace.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
queue.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
random.h
reboot.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
regression.h Improve consistency of include file guards in src/sys/sys by terminating 2004-05-10 18:38:07 +00:00
resource.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
resourcevar.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
rman.h Include <machine/bus.h> and <machine/resource.h> here (only in the 2004-05-30 23:08:53 +00:00
rtprio.h
runq.h
sbuf.h
sched.h Switch the sleep/wakeup and condition variable implementations to use the 2004-02-27 18:52:44 +00:00
select.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
selinfo.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
sem.h s/u_short/unsigned short/ to make this compile if _POSIX_C_SOURCE=200112 2003-06-02 17:23:37 +00:00
sema.h
semaphore.h The sem_timedwait() and ksem_timedwait() functions both 2004-02-03 22:27:03 +00:00
sf_buf.h In some cases, sf_buf_alloc() should sleep with pri PCATCH; in others, it 2004-04-03 09:16:27 +00:00
shm.h Bring shm functions closer the the opengroup standards. 2003-01-25 21:33:05 +00:00
sigio.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
signal.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
signalvar.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
sleepqueue.h - Remove old sleep queues. 2004-03-12 19:06:18 +00:00
smp.h Change the type of the various CPU masks to cpumask_t. Note that as 2004-03-27 18:21:24 +00:00
snoop.h Declare the snp ioctl()s to work on udev_t, since that is what they 2002-11-11 10:45:31 +00:00
socket.h Whitespace correction - #define should be followed by a tab. 2004-06-01 08:59:03 +00:00
socketvar.h Mark sun_noname as const since it's immutable. Update definitions 2004-06-04 04:07:08 +00:00
sockio.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
soundcard.h New defines that paves the way for new midi features and ports. 2003-11-22 03:27:09 +00:00
stat.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
statvfs.h
stddef.h Change the definition of NULL on ia64 (for LP64 compilations) from 2003-12-07 21:10:06 +00:00
stdint.h
sun_disklabel.h Add SVR4-compatible VTOC-style elements to the Sun label. The 2004-06-01 20:18:25 +00:00
sx.h Include <sys/queue.h> before <sys/_lock.h> instead of depending on 2004-02-04 14:18:21 +00:00
syscall.h Regen. 2004-04-05 10:17:23 +00:00
syscall.mk Regen. 2004-04-05 10:17:23 +00:00
syscallsubr.h Back out the following revisions: 2003-11-05 01:53:10 +00:00
sysctl.h Define a KERN_PROC_RGID option for kvm_getprocs(). 2004-05-22 23:08:49 +00:00
sysent.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
syslimits.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
syslog.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
sysproto.h Regen. 2004-04-05 10:17:23 +00:00
systm.h Remove filename+line number from panic messages. 2004-06-06 21:26:49 +00:00
taskqueue.h Defer the vrele() on a jail's root vnode reference from prison_free() 2004-01-23 20:44:26 +00:00
termios.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
thr.h Separate thread synchronization from signals in libthr. Instead 2004-03-27 14:30:43 +00:00
tiio.h
time.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
timeb.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
timepps.h Long overdue comment claification: RFC 2783 was approved long time ago. 2003-11-23 18:52:23 +00:00
timers.h
times.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
timespec.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
timetc.h Give timecounters a numeric quality field. 2003-08-16 08:23:53 +00:00
timex.h
tree.h Synch with NetBSD: avoid "unused parameter" warning. 2004-03-29 11:18:25 +00:00
tty.h Reference count struct tty. 2004-06-09 09:41:30 +00:00
ttychars.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
ttycom.h Mode few Bluetooth defines into system include files 2004-05-10 02:24:56 +00:00
ttydefaults.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
ttydev.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
turnstile.h Sort function prototypes. 2004-04-06 19:08:40 +00:00
types.h Prevent SysV spellings in int's in the kernel. 2004-04-19 22:49:00 +00:00
ucontext.h Change the clear_ret argument of get_mcontext() to be a flags argument. 2003-11-09 20:31:04 +00:00
ucred.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
uio.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
umtx.h Catch a few places where NULL (pointer) was used where 0 (integer) was 2003-12-23 02:36:43 +00:00
un.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
unistd.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
unpcb.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
user.h Define KINFO_PROC_SIZE for arm. 2004-05-07 15:37:56 +00:00
utsname.h Remove advertising clause from University of California Regent's license, 2004-04-07 04:19:52 +00:00
uuid.h Introduce {be,le}_uuid_{enc,dec}() functions for explicitly encoding 2003-05-31 16:47:07 +00:00
vmmeter.h Remove remnants of PGINPROF. 2004-06-08 10:37:30 +00:00
vnode.h Change the types of vn_rdwr_inchunks()'s len and aresid arguments to 2004-06-05 02:18:28 +00:00
wait.h Fixed missing forward declaration of struct rusage in the _KERNEL case. 2004-04-09 13:14:32 +00:00
watchdog.h Add a generic watchdog facility which through a single device entry 2004-02-28 20:06:59 +00:00
xrpuio.h