freebsd-skq/sys/sys
Ed Schouten 3f3f6bc302 Make kobj_methods constant.
These structures hold no information that is modified during runtime. By
marking this constant, we see approximately 600 symbols become
read-only (amd64 GENERIC). While there, also mark the kobj_method
structures generated by makeobjops.awk static. They are only referenced
by the kobjop_desc structures within the same file.

Before:

	$ ls -l kernel
	-rwxr-xr-x  1 ed  wheel  15937309 Nov  8 16:29 kernel*
	$ size kernel
	    text    data     bss      dec    hex filename
	12260854 1358468 2848832 16468154 fb48ba kernel
	$ nm kernel | fgrep -c ' r '
	8240

After:

	$ ls -l kernel
	-rwxr-xr-x  1 ed  wheel  15922469 Nov  8 16:25 kernel*
	$ size kernel
	    text    data     bss      dec    hex filename
	12302869 1302660 2848704 16454233 fb1259 kernel
	$ nm kernel | fgrep -c ' r '
	8838
2011-11-08 15:38:21 +00:00
..
_bus_dma.h
_callout.h Implement the delayed task execution extension to the taskqueue 2011-04-26 11:39:56 +00:00
_cpuset.h Revert this, as in userland MAXCPU is always 1. 2011-05-05 19:35:12 +00:00
_iovec.h
_lock.h
_lockmgr.h In current code, threads performing an interruptible sleep (on both 2009-12-12 21:31:07 +00:00
_mutex.h
_null.h *sigh*, while the kernel built, userland C did not. Revert the previous 2009-05-11 21:13:00 +00:00
_pthreadtypes.h Fix the visibility of several prototypes. Also move pthread_kill() and 2009-03-14 20:10:14 +00:00
_rmlock.h Commit the support for removing cpumask_t and replacing it directly with 2011-05-05 14:39:14 +00:00
_rwlock.h
_semaphore.h Use umtx to implement process sharable semaphore, to make this work, 2010-01-05 02:37:59 +00:00
_sigset.h
_sockaddr_storage.h Move the duplicate definition of struct sockaddr_storage to its own 2009-09-08 10:39:38 +00:00
_stack.h
_stdint.h Fix by hand files that aren't added automatically by svn. 2011-05-09 22:13:07 +00:00
_sx.h
_task.h Use a safer mechanism for determining if a task is currently running, 2010-10-13 22:59:04 +00:00
_termios.h Decompose <sys/termios.h>. 2009-11-28 23:50:48 +00:00
_timespec.h Rename st_*timespec fields to st_*tim for POSIX 2008 compliance. 2010-03-28 13:13:22 +00:00
_timeval.h
_types.h Define cap_rights_t and DTYPE_CAPABILITY, which are required to 2011-07-01 12:13:48 +00:00
_umtx.h MFp4: 2010-12-22 05:01:52 +00:00
aac_ioctl.h Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
acct.h
acl.h Make it possible to use permission sets (full_set, modify_set, read_set 2011-04-09 07:42:25 +00:00
agpio.h
aio.h Namespace: aio_waitcomplete() is a BSD extension. 2009-03-14 19:17:00 +00:00
alq.h - Rework the underlying ALQ storage to be a circular buffer, which amongst other 2010-04-26 13:48:22 +00:00
apm.h Add apple-boot and apple-ufs. 2009-12-14 22:47:09 +00:00
assym.h
ata.h Improve SATA Asynchronous Notification feature support in CAM: 2011-04-13 16:20:54 +00:00
bio.h Correct bioq_disksort so that bioq_insert_tail() offers barrier semantic. 2010-09-02 19:40:28 +00:00
bitstring.h
blist.h
buf_ring.h Switch to our preferred 2-clause BSD license. 2010-05-05 20:39:02 +00:00
buf.h Improve the informations reported in case of busy buffers during the shutdown: 2011-09-08 12:56:26 +00:00
bufobj.h Remove the struct thread unuseful argument from bufobj interface. 2008-10-10 21:23:50 +00:00
bus_dma.h When bouncing pages, allow a new option to preserve the intra-page 2009-02-08 22:54:58 +00:00
bus.h Add two new macros DRIVER_MODULE_ORDERED() and EARLY_DRIVER_MODULE_ORDERED() 2011-08-22 18:36:58 +00:00
callout.h Implement the delayed task execution extension to the taskqueue 2011-04-26 11:39:56 +00:00
capability.h Add experimental support for process descriptors 2011-08-18 22:51:30 +00:00
cdefs.h Silence an (otherwise harmless) very recurrent warning when building the 2011-11-04 15:34:31 +00:00
cdio.h
cdrio.h
cfictl.h Add support for frobbing Intel StrataFlash Protection Registers: 2009-02-05 18:12:07 +00:00
chio.h
clock.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
condvar.h
conf.h Get rid of D_PSEUDO. 2011-10-18 08:09:44 +00:00
cons.h Allow multiple console devices per driver without insane code duplication. 2009-08-24 10:53:30 +00:00
consio.h
copyright.h Happy New Year 2011. 2010-12-31 18:07:16 +00:00
cpu.h Provide a new CPU device driver ivar to report the nominal speed of the 2009-05-31 08:59:15 +00:00
cpuctl.h - Add support to atomically set/clear individual bits of a MSR register 2009-06-30 12:35:47 +00:00
cpuset.h - Remove the now unused CPU_NAND_ATOMIC() 2011-07-04 12:18:12 +00:00
ctype.h
dataacq.h
device_port.h
devicestat.h
digiio.h
dir.h
dirent.h
disk.h Plumb device physical path reporting from CAM devices, through GEOM and 2011-06-14 17:10:32 +00:00
disklabel.h Add MIPS platform, this will make bsdlabel(8) work on MIPS (when invoked 2010-09-23 05:24:50 +00:00
diskmbr.h MS Windows NT+ uses 4 bytes at offset 0x1b8 in the MBR to identify 2011-06-27 10:42:06 +00:00
diskpc98.h Fix clang warnings. 2011-06-18 13:56:33 +00:00
dkstat.h
domain.h Introduce and use a sysinit-based initialization scheme for virtual 2009-07-23 20:46:49 +00:00
dtrace_bsd.h Add DTrace support to the new NFS client. This is essentially 2011-06-18 23:02:53 +00:00
dvdio.h
elf32.h
elf64.h style(9) 2009-01-01 02:08:56 +00:00
elf_common.h Add the ability to search for all the inlined instances of a given function. 2011-05-07 01:05:31 +00:00
elf_generic.h style(9) 2009-01-01 02:08:56 +00:00
elf.h
endian.h Fix some way-past-brucification complaints from FlexeLint. 2010-05-20 06:16:13 +00:00
errno.h errno.h: fix couple of whitespace nits 2011-04-04 17:39:30 +00:00
eui64.h
event.h Remove MALLOC_DECLAREs of nonexisting malloc-pools. 2011-11-06 20:16:50 +00:00
eventhandler.h Add event handlers for (ACPI) suspend/resume events. Suspend event handlers 2011-04-14 22:17:39 +00:00
eventvar.h
exec.h Add macro DECLARE_MODULE_TIED to denote a module as requiring the 2010-10-12 09:18:17 +00:00
extattr.h Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary 2008-10-28 13:44:11 +00:00
fail.h Initialize fp_location for explicitly managed fail points, and push 2010-12-21 18:23:03 +00:00
fbio.h Yet another attempt to make palette loading more safer: 2010-02-23 21:51:14 +00:00
fcntl.h Add the posix_fadvise(2) system call. It is somewhat similar to 2011-11-04 04:02:50 +00:00
fdcio.h
file.h Remove MALLOC_DECLAREs of nonexisting malloc-pools. 2011-11-06 20:16:50 +00:00
filedesc.h Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
filio.h Add FIONSPACE from NetBSD. FIONSPACE is provided so that programs may 2009-06-30 13:38:49 +00:00
firmware.h
fnv_hash.h
gmon.h
gpio.h Initial GPIO bus support. Includes: 2010-09-28 03:24:53 +00:00
gpt.h Add new user-friendly aliases for partition types for the MBR and 2011-01-28 11:13:01 +00:00
hash.h
hhook.h Use the full and proper company name for Swinburne University of Technology 2011-04-12 08:13:18 +00:00
iconv.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
imgact_aout.h Merge projects/enhanced_coredumps (r204346) into HEAD: 2010-03-02 06:58:58 +00:00
imgact_elf.h Reword the comment, fixing typo. 2010-07-24 14:23:06 +00:00
imgact.h Create shared (readonly) page. Each ABI may specify the use of page by 2011-01-08 16:13:44 +00:00
inflate.h
interrupt.h - Remove the eintrcnt/eintrnames usage and introduce the concept of 2011-07-18 15:19:40 +00:00
ioccom.h IOCPARM_MAX defines maximum size of a structure that can be passed 2010-04-01 16:21:35 +00:00
ioctl_compat.h Perform cleanups to the TTY headers: 2009-09-06 09:39:40 +00:00
ioctl.h Clean up <sys/ioctl.h>. 2009-05-09 19:01:24 +00:00
ipc.h Change the ABI of some of the structures used by the SYSV IPC API: 2009-06-24 21:10:52 +00:00
ipmi.h
jail.h Change the way rctl interfaces with jails by introducing prison_racct 2011-05-03 07:32:58 +00:00
joystick.h
kbio.h Restore binary compatibility for GIO_KEYMAP and PIO_KEYMAP. 2011-07-17 08:19:19 +00:00
kdb.h Attempt to make break-to-debugger and alternative break-to-debugger more 2011-08-26 21:46:36 +00:00
kenv.h
kernel.h Add racct. It's an API to keep per-process, per-jail, per-loginclass 2011-03-29 17:47:25 +00:00
kerneldump.h - Add minidump support for FreeBSD/mips 2010-11-07 03:09:02 +00:00
khelp.h Use the full and proper company name for Swinburne University of Technology 2011-04-12 08:13:18 +00:00
kobj.h Make kobj_methods constant. 2011-11-08 15:38:21 +00:00
ksem.h
ksyms.h Add the ksyms(4) pseudo driver. The ksyms driver allows a process to 2009-05-26 21:39:09 +00:00
kthread.h Remove spurious '/*-' marks and fix some other style problems. 2010-07-22 05:42:29 +00:00
ktr.h Fix KTR_CPUMASK in order to accept a string representing a cpuset_t. 2011-05-31 20:48:58 +00:00
ktrace.h Revisit the capability failure trace points. The initial implementation 2011-10-18 07:28:58 +00:00
libkern.h Add strnlen() to libkern. 2011-10-04 23:53:47 +00:00
limits.h POSIX.1-2008 moved some constants from the XSI option to the Base. 2011-03-04 19:28:27 +00:00
link_aout.h
link_elf.h In rtld, read the initial stack access mode from AT_STACKPROT as set 2011-01-08 17:11:49 +00:00
linker_set.h After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
linker.h Provide convenience function for obtaining MODINFO_ADDR and MODINFO_SIZE 2011-02-09 19:08:21 +00:00
lock_profile.h In non-debugging mode make this define (void)0 instead of nothing. This 2009-06-21 09:01:12 +00:00
lock.h Protect BSDI $Id from accidental manipulation. 2010-09-10 06:26:28 +00:00
lockf.h The advisory lock may be activated or activated and removed during the 2009-05-24 12:39:38 +00:00
lockmgr.h Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and 2010-08-20 19:46:50 +00:00
lockstat.h Add the OpenSolaris dtrace lockstat provider. The lockstat provider 2009-05-26 20:28:22 +00:00
loginclass.h Add racct. It's an API to keep per-process, per-jail, per-loginclass 2011-03-29 17:47:25 +00:00
mac.h
malloc.h Add MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma 2010-07-28 15:36:12 +00:00
mbpool.h
mbuf.h Update packet filter (pf) code to OpenBSD 4.5. 2011-06-28 11:57:25 +00:00
mchain.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
md4.h
md5.h
mdioctl.h
memrange.h Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set(). 2011-01-17 22:58:28 +00:00
mman.h Add the MAP_PREFAULT_READ option to mmap(2). 2010-08-28 16:57:07 +00:00
module_khelp.h Use the full and proper company name for Swinburne University of Technology 2011-04-12 08:13:18 +00:00
module.h Add macro DECLARE_MODULE_TIED to denote a module as requiring the 2010-10-12 09:18:17 +00:00
mount.h Move the MNTK_SUJ flag in mnt_kern_flag to MNT_SUJ in mnt_flag 2011-07-24 18:27:09 +00:00
mouse.h
mpt_ioctl.h
mqueue.h
msg.h Add ucred pointer to the SysV-related memory structures. This is required 2011-04-06 16:59:54 +00:00
msgbuf.h Increase MSGBUF_SIZE. 2011-10-07 06:00:00 +00:00
mtio.h
mutex.h Retire mp_fixme(). It's no longer used. 2011-02-14 02:37:27 +00:00
namei.h Allow Capsicum capabilities to delegate constrained 2011-08-13 09:21:16 +00:00
nlist_aout.h Make the char *n_name member of struct nlist 'const'. 2010-06-10 14:19:51 +00:00
osd.h - Introduce the Hhook (Helper Hook) KPI. The KPI is closely modelled on pfil(9), 2010-12-21 13:45:29 +00:00
param.h Add the posix_fadvise(2) system call. It is somewhat similar to 2011-11-04 04:02:50 +00:00
pciio.h - Add a new ioctl to /dev/pci to fetch details on an individual BAR of a 2009-02-02 22:04:40 +00:00
pcpu.h Remove explicit MAXCPU usage from sys/pcpu.h avoiding a namespace 2011-07-19 16:50:55 +00:00
pioctl.h Fix typo. 2011-01-23 12:44:17 +00:00
pipe.h Supply unique (st_dev, st_ino) value pair for the fstat(2) done on the pipes. 2011-10-05 16:56:06 +00:00
pmc.h Add missing DEBUG define from r226514. 2011-10-19 07:16:57 +00:00
pmckern.h Commit the support for removing cpumask_t and replacing it directly with 2011-05-05 14:39:14 +00:00
pmclog.h Add a flush of the current PMC log buffer before displaying the next top. 2011-10-18 15:25:43 +00:00
poll.h
posix4.h In order to maximize the re-usability of kernel code in user space this 2011-09-16 13:58:51 +00:00
power.h
priority.h Use a name instead of a magic number for kern_yield(9) when the priority 2011-05-13 05:27:58 +00:00
priv.h Add infrastructure to allow all frames/packets received on an interface 2011-07-03 12:22:02 +00:00
proc.h Inline the syscallenter() and syscallret(). This reduces the time measured 2011-09-11 16:05:09 +00:00
procdesc.h Add experimental support for process descriptors 2011-08-18 22:51:30 +00:00
procfs.h Add the ability for GDB to printout the thread name along with other 2010-11-22 14:42:13 +00:00
protosw.h Introduce an infrastructure for dismantling vnet instances. 2009-06-08 17:15:40 +00:00
ptio.h
ptrace.h Allow debugger to specify that children of the traced process should be 2011-01-25 10:59:21 +00:00
queue.h Note that the _SWAP operation is supported for all list/queue types. 2011-05-13 15:49:23 +00:00
racct.h Fix another bug introduced in r225641, which caused rctl to access certain 2011-10-03 16:23:20 +00:00
random.h
rctl.h Change the way rctl interfaces with jails by introducing prison_racct 2011-05-03 07:32:58 +00:00
reboot.h
refcount.h
regression.h
resource.h Style fix - keep the line length below 80 characters. 2010-07-18 11:13:36 +00:00
resourcevar.h - Export each thread's individual resource usage in in struct kinfo_proc's 2011-07-18 17:33:08 +00:00
rman.h Extend the rman(9) API to support altering an existing resource. 2011-04-29 20:05:19 +00:00
rmlock.h rmlock(9) two additions and one change/fix: 2010-09-01 19:50:03 +00:00
rtprio.h
runq.h
rwlock.h When releasing a read/shared lock we need to use a write memory barrier 2009-09-30 13:26:31 +00:00
sbuf.h Change the length quantities of sbufs to be ssize_t rather than int. 2011-05-16 16:18:40 +00:00
sched.h - Follow r216313, the sched_unlend_user_prio is no longer needed, always 2010-12-29 09:26:46 +00:00
sdt.h SDT's struct sdt_argtype can be marked static everywhere. 2011-11-07 07:09:38 +00:00
select.h
selinfo.h Fix a deficiency in the selinfo interface: 2011-08-25 15:51:54 +00:00
sem.h Remove semaphore map entry count "semmap" field and its tuning 2011-07-14 14:18:14 +00:00
sema.h
serial.h
sf_buf.h
sglist.h Change the 'resid' parameter to sglist_consume_uio() from an int to a 2009-08-20 19:23:58 +00:00
shm.h Add ucred pointer to the SysV-related memory structures. This is required 2011-04-06 16:59:54 +00:00
sigio.h
signal.h Make POLL_ERR and POLL_HUP different. 2010-11-12 15:30:49 +00:00
signalvar.h In order to maximize the re-usability of kernel code in user space this 2011-09-16 13:58:51 +00:00
sleepqueue.h Tighten up some of the comments describing turnstiles and sleepqueues. 2010-12-13 23:53:55 +00:00
smp.h Merge r221901 from largeSMP project branch: 2011-05-22 21:31:36 +00:00
snoop.h
sockbuf.h Increase the defaults for the maximum socket buffer limit, 2011-08-25 09:20:13 +00:00
socket.h Allow using CMSG_NXTHDR with -Wcast-align. 2011-04-17 16:04:39 +00:00
socketvar.h This commit implements the SO_USER_COOKIE socket option, which lets 2010-11-12 13:02:26 +00:00
sockio.h Add infrastructure to allow all frames/packets received on an interface 2011-07-03 12:22:02 +00:00
sockopt.h
sockstate.h
soundcard.h add SNDCTL_DSP_HALT specified by OSS 2011-06-29 08:32:37 +00:00
stack.h Add stack_print_short() and stack_print_short_ddb() interfaces to 2009-06-24 12:06:15 +00:00
stat.h Rename st_*timespec fields to st_*tim for POSIX 2008 compliance. 2010-03-28 13:13:22 +00:00
statvfs.h
stddef.h Guard ptrdiff_t. 2011-05-05 02:35:25 +00:00
stdint.h Don't duplicate define the stdint types. 2011-05-05 14:45:24 +00:00
sun_disklabel.h
sx.h - Merge changes to the base system to support OFED. These include 2011-03-21 09:40:01 +00:00
syscall.h Regen. 2011-11-04 04:06:31 +00:00
syscall.mk Regen. 2011-11-04 04:06:31 +00:00
syscallsubr.h Add support for executing the FreeBSD 1/i386 a.out binaries on amd64. 2011-04-01 11:16:29 +00:00
sysctl.h Define two new sysctl node flags: CTLFLAG_CAPRD and CTLFLAG_CAPRW, which 2011-07-17 23:05:24 +00:00
sysent.h Control the execution permission of the readable segments for 2011-10-15 12:35:18 +00:00
syslimits.h Rework the credential code to support larger values of NGROUPS and 2009-06-19 17:10:35 +00:00
syslog.h Namespace: vsyslog() is a BSD extension. 2009-03-14 19:07:25 +00:00
sysproto.h Regen. 2011-11-04 04:06:31 +00:00
systm.h remove RESTARTABLE_PANICS option 2011-07-25 09:12:48 +00:00
taskqueue.h Implement the delayed task execution extension to the taskqueue 2011-04-26 11:39:56 +00:00
termios.h Decompose <sys/termios.h>. 2009-11-28 23:50:48 +00:00
thr.h Make this file more C++ friendly. 2010-04-20 17:57:43 +00:00
tiio.h
time.h Remove timeval2timespec and its converse, since we already have 2011-08-09 14:06:50 +00:00
timeb.h Add warnings to <regexp.h> and <sys/timeb.h>. 2010-03-09 21:01:12 +00:00
timeet.h Refactor timer management code with priority to one-shot operation mode. 2010-09-13 07:25:35 +00:00
timepps.h
timers.h
times.h
timespec.h Rename st_*timespec fields to st_*tim for POSIX 2008 compliance. 2010-03-28 13:13:22 +00:00
timetc.h Prefer uint64_t over u_int64_t. 2011-07-14 21:02:15 +00:00
timex.h
tree.h In sys/tree.h: 2009-03-01 04:57:23 +00:00
tty.h Reintroduce the cioctl() hook in the TTY layer for digi(4). 2011-07-02 13:54:20 +00:00
ttycom.h Perform cleanups to the TTY headers: 2009-09-06 09:39:40 +00:00
ttydefaults.h Reduce the default baud rate of PTY's to 9600. 2008-11-08 20:40:39 +00:00
ttydevsw.h Reintroduce the cioctl() hook in the TTY layer for digi(4). 2011-07-02 13:54:20 +00:00
ttydisc.h Add ttydisc_rint_simple(). 2009-08-23 08:04:40 +00:00
ttyhook.h Change ttyhook_register() second argument from thread to process pointer. 2008-12-13 21:17:46 +00:00
ttyqueue.h Properly set the low watermarks when reducing the baud rate. 2009-10-19 07:17:37 +00:00
turnstile.h Tighten up some of the comments describing turnstiles and sleepqueues. 2010-12-13 23:53:55 +00:00
types.h Define cap_rights_t and DTYPE_CAPABILITY, which are required to 2011-07-01 12:13:48 +00:00
ucontext.h
ucred.h Add two new system calls, setloginclass(2) and getloginclass(2). This makes 2011-03-05 12:40:35 +00:00
uio.h Add a facility to disable processing page faults. When activated, 2011-07-09 15:21:10 +00:00
umtx.h Use umtx_key objects to uniquely identify futexes. Private futexes in 2011-02-23 13:23:28 +00:00
un.h Now that portalfs doesn't directly invoke uipc_connect2(), make it a 2008-10-06 18:43:11 +00:00
unistd.h Claim that _POSIX_ADVISORY_INFO is fully supported since posix_fadvise() 2011-11-08 14:47:28 +00:00
unpcb.h
user.h Add KVME_FLAG_SUPER and use it in sysctl_kern_proc_vmmap for marking 2011-11-07 21:13:19 +00:00
utsname.h
uuid.h
vmmeter.h Move repeated MAXSLP definition from machine/vmparam.h to sys/vmmeter.h. 2011-01-09 12:50:44 +00:00
vnode.h Add the posix_fadvise(2) system call. It is somewhat similar to 2011-11-04 04:02:50 +00:00
vtoc.h - In gpart_bootfile_read() fix an off-by-one error preventing the bootstrap 2010-06-03 13:01:55 +00:00
wait.h Implement WNOWAIT flag for wait4(2). It specifies that process whose status 2008-08-26 12:37:16 +00:00
watchdog.h - Add the possibility to reuse the already last used timeout when patting 2011-04-27 16:43:03 +00:00