freebsd-dev/sys/sys
Julian Elischer 77c4066424 Add some DIAGNOSTIC code.
While in userland, keep the thread's ucred reference in a shadow
field so that the usual place to store it is NULL.
If DIAGNOSTIC is not set, the thread ucred is kept valid until the next
kernel entry, at which time it is checked against the process cred
and possibly corrected. Produces a BIG speedup in
kernels with INVARIANTS set. (A previous commit corrected it
for the non INVARIANTS case already)

Reviewed by:	dillon@freebsd.org
2002-02-22 23:58:22 +00:00
..
_lock.h
_mutex.h Modify the critical section API as follows: 2001-12-18 00:27:18 +00:00
_posix.h
_sigset.h Use struct __ucontext in prototypes and associated functions instead of 2002-02-17 17:40:34 +00:00
_timespec.h
aac_ioctl.h
acct.h
acl.h Remove bogus _POSIX_ACL_PATH_MAX definition. 2002-01-22 21:33:12 +00:00
agpio.h Fix an off-by-bit error in the AGP_MODE_[GS]ET_RATE() macros. 2001-11-21 08:40:23 +00:00
aio.h o Add missing synchronization (splnet()/splx()) in aio_free_entry(). 2002-01-06 21:03:39 +00:00
assym.h
ata.h
bio.h GC: BIO_ORDERED, various infrastructure dealing with BIO_ORDERED. 2002-02-22 09:26:35 +00:00
bitstring.h
blist.h
buf.h Replace bowrite() with BUF_WRITE in ufs. 2002-02-22 09:03:00 +00:00
bus_dma.h
bus_private.h
bus.h Add a generic __BUS_ACCESSOR macro to construct ivar accessor functions, 2001-12-21 21:45:09 +00:00
callout.h
capability.h
ccdvar.h
cdefs.h Back out rev 1.48. The problem is with a bogus __attribute__ in stdio.h. 2001-12-04 01:29:54 +00:00
cdio.h
cdrio.h Add entries to allow setting the CD type on cue sheets 2001-12-04 21:40:41 +00:00
chio.h
clist.h
condvar.h
conf.h Add revoke_and_destroy_dev(), to be used by devices which decide when 2002-02-16 17:35:05 +00:00
cons.h Add new boot flag to i386 boot: -p. 2001-12-10 20:02:22 +00:00
consio.h
copyright.h Welcome 2002. Happy new year. 2002-01-01 09:20:52 +00:00
ctype.h
dataacq.h
device_port.h
devicestat.h
digiio.h
dir.h
dirent.h
disk.h
disklabel.h Uninlined most of the bloated inline functions in <sys/disklabel.h>. Some 2002-01-17 18:33:18 +00:00
diskmbr.h Uninlined most of the bloated inline functions in <sys/disklabel.h>. Some 2002-01-17 18:33:18 +00:00
diskpc98.h Uninlined most of the bloated inline functions in <sys/disklabel.h>. Some 2002-01-17 18:33:18 +00:00
diskslice.h
dkstat.h
dmap.h
domain.h
dvdio.h
elf32.h
elf64.h
elf_common.h
elf_generic.h
errno.h Tiny style change. Whitespace only change. 2002-01-22 10:44:40 +00:00
event.h Make AIO a loadable module. 2001-12-29 07:13:47 +00:00
eventhandler.h
eventvar.h
exec.h
extattr.h Part I: Update extended attribute API and ABI: 2002-02-10 04:43:22 +00:00
fbio.h
fcntl.h SMP Lock struct file, filedesc and the global file list. 2002-01-13 11:58:06 +00:00
fdcio.h Long promised major enhancement set for the floppy disk driver: 2001-12-15 19:09:04 +00:00
file.h use mutex pools for "struct file" locking. 2002-01-20 22:58:08 +00:00
filedesc.h Remove an unneeded include of sys/sx.h. An older pre-commit version of 2002-02-14 18:18:25 +00:00
filio.h
fnv_hash.h
gmon.h Reserved one of the spare fields in struct gmon to record the history 2002-02-21 05:52:49 +00:00
iconv.h Update to C99, s/__FUNCTION__/__func__/. 2001-12-10 05:58:28 +00:00
imgact_aout.h o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
imgact_elf.h
imgact.h Return a more meaningful errno when the length of the interpreter 2001-11-28 03:26:58 +00:00
inflate.h
interrupt.h Change the preemption code for software interrupt thread schedules and 2002-01-05 08:47:13 +00:00
ioccom.h
ioctl_bt848.h
ioctl_compat.h
ioctl_meteor.h
ioctl.h
ipc.h Eliminate semexit_hook using at_exit(9) and rm_at_exit(9). 2001-12-30 18:55:09 +00:00
jail.h o Introduce pr_mtx into struct prison, providing protection for the 2001-12-03 16:12:27 +00:00
joystick.h
kbio.h
kernel.h Add a new sysinit SI_SUB_DEVFS. Devfs hooks into the kernel at SI_ORDER_FIRST, 2002-01-09 04:58:49 +00:00
kobj.h
kse.h Add the first shot at minimum KSE interface definitions. 2002-02-19 02:12:36 +00:00
kthread.h
ktr.h Fix two typos, TR6() and ITR6() need to use CTR6(), not CTR5(). 2001-12-14 22:28:58 +00:00
ktrace.h
libkern.h Add a 'strvalid()' call to libkern. Given a character pointer, and 2002-02-18 00:37:03 +00:00
linedisc.h Add revoke_and_destroy_dev(), to be used by devices which decide when 2002-02-16 17:35:05 +00:00
link_aout.h
link_elf.h
linker_set.h
linker.h
lock.h Change the preemption code for software interrupt thread schedules and 2002-01-05 08:47:13 +00:00
lockf.h
lockmgr.h Fix a BUF_TIMELOCK race against BUF_LOCK and fix a deadlock in vget() 2001-12-20 22:42:27 +00:00
malloc.h
mbuf.h Get rid of the twisted MFREE() macro entirely. 2002-02-05 02:00:56 +00:00
mchain.h o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
md4.h
md5.h
mdioctl.h Actually make use of the md_version field of 'struct mdio'. In order 2001-12-20 06:38:21 +00:00
memrange.h
mman.h
module.h
mount.h
mouse.h
msg.h
msgbuf.h
mtio.h Fix a typo in a comment field. 2002-01-21 11:10:32 +00:00
mutex.h Add kern_giant_ucred to instrument Giant around ucred related operations 2002-02-18 17:51:47 +00:00
namei.h
nlist_aout.h
param.h o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
pciio.h
pcpu.h Convert p->p_runtime and PCPU(switchtime) to bintime format. 2002-02-22 13:32:01 +00:00
pioctl.h
pipe.h
poll.h Fix select on fifos. 2002-01-14 22:03:48 +00:00
posix4.h
power.h
priority.h
proc.h Add some DIAGNOSTIC code. 2002-02-22 23:58:22 +00:00
procfs.h
protosw.h
ptio.h
ptrace.h
queue.h Correct a comment that should have been updated in rev 1.43, when 2001-12-11 11:49:58 +00:00
random.h
reboot.h Add new boot flag to i386 boot: -p. 2001-12-10 20:02:22 +00:00
regression.h
resource.h
resourcevar.h use mutex pool mutexes for uidinfo locking. 2002-01-20 22:48:49 +00:00
rman.h Add a rman_reserve_resource_bound() function that takes an additional 2001-12-21 21:40:55 +00:00
rtprio.h In a threaded world, differnt priorirites become properties of 2002-02-11 20:37:54 +00:00
runq.h
sbuf.h Replace spaces after #defines with tabs; this makes all #defines 2002-01-09 07:29:28 +00:00
select.h
selinfo.h
sem.h
sema.h
semaphore.h
shm.h
signal.h Use struct __ucontext in prototypes and associated functions instead of 2002-02-17 17:40:34 +00:00
signalvar.h Use struct __ucontext in prototypes and associated functions instead of 2002-02-17 17:40:34 +00:00
smp.h
snoop.h
socket.h Zero functional difference; make some integer constants unsigned, as 2002-02-03 11:36:59 +00:00
socketvar.h Add parens around macro args. 2002-01-13 23:51:47 +00:00
sockio.h Style consistency fix for MAC ioctls added previously. 2002-02-10 16:55:35 +00:00
soundcard.h
stat.h Resurrect one of the easiest changes from my big include files roll-up 2002-02-15 22:15:39 +00:00
stdint.h
sx.h
syscall.h Add stub syscalls and definitions for KSE calls. 2002-02-19 02:40:31 +00:00
syscall.mk Add stub syscalls and definitions for KSE calls. 2002-02-19 02:40:31 +00:00
sysctl.h Add code to export and print the description associated to sysctl 2001-12-16 02:55:41 +00:00
sysent.h Make AIO a loadable module. 2001-12-29 07:13:47 +00:00
syslimits.h
syslog.h
sysproto.h Add stub syscalls and definitions for KSE calls. 2002-02-19 02:40:31 +00:00
systm.h Move the declaration of panic() from sys/param.h back to sys/systm.h. 2002-02-11 02:13:18 +00:00
taskqueue.h
termios.h
time.h Fix world breakage (compiling libstdc++): 2002-02-08 03:55:37 +00:00
timeb.h Add missing declaration of ftime. 2001-12-03 15:07:54 +00:00
timepps.h
timers.h
times.h
timespec.h
timetc.h Revise timercounters to use binary fixed point format internally. 2002-02-07 21:21:55 +00:00
timex.h
tty.h
ttychars.h
ttycom.h
ttydefaults.h
ttydev.h
types.h o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
ucontext.h Add getcontext, setcontext, makecontext, and swapcontext prototypes 2002-01-10 02:44:30 +00:00
ucred.h Purely whitespace changes 2002-02-17 08:14:15 +00:00
uio.h
un.h
unistd.h Make RFPPWAIT a kernel-only flag. Programs desiring this feature should 2001-12-19 00:55:13 +00:00
unpcb.h
user.h
utsname.h
vmmeter.h
vnioctl.h
vnode.h Make v_addpollinfo() visible and non-inline. 2002-02-18 16:18:02 +00:00
wait.h
xrpuio.h